Skip to content

Remove redundant LogEntry value (#3997) - #4071

Merged
asfgit merged 1 commit into
apache:mainfrom
ctubbsii:3997-redo
Dec 14, 2023
Merged

Remove redundant LogEntry value (#3997)#4071
asfgit merged 1 commit into
apache:mainfrom
ctubbsii:3997-redo

Conversation

@ctubbsii

Copy link
Copy Markdown
Member

Remove the LogEntry.getValue() method and use the column qualifier for the file path, without the redundant storage in the Value

  • Remove getValue() method and use empty new Value()
  • Create addToMutation method to remove boilerplate for storing the LogEntry in the metadata
  • Strictly validate the metadata log entries' column qualifier

This re-applies the reverted change for this ticket, 0cdf6dd, but without the renaming of filePath to logReference, since with further analysis of the schema, it was discovered that these are, in fact, file paths, and not just generic references to log IDs.

This re-application also removes the metadata constraint that expected the value to be non-empty, which was overlooked on the first attempt.


@ctubbsii ctubbsii self-assigned this Dec 14, 2023
Remove the `LogEntry.getValue()` method and use the column qualifier
for the file path, without the redundant storage in the Value

* Remove `getValue()` method and use empty `new Value()`
* Create addToMutation method to remove boilerplate for storing
  the LogEntry in the metadata
* Strictly validate the metadata log entries' column qualifier

This re-applies the reverted change for apache#3997,
0cdf6dd, but without the renaming of
filePath to logReference, since with further analysis of the schema, it
was discovered that these are, in fact, file paths, and not just generic
references to log IDs.

This re-application also removes the metadata constraint that expected
the value to be non-empty, which was overlooked on the first attempt.

---------

Co-authored-by: Christopher Tubbs <ctubbsii@apache.org>

@EdColeman EdColeman left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Minor question - LGTM

@asfgit
asfgit merged commit 3061ff0 into apache:main Dec 14, 2023
@ctubbsii
ctubbsii deleted the 3997-redo branch December 14, 2023 01:32
@ctubbsii ctubbsii added this to the 3.1.0 milestone Jul 12, 2024
@ctubbsii ctubbsii modified the milestones: 3.1.0, 4.0.0 Mar 14, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants