Skip to content

Make sure existing file path is used for metadata updates#3432

Merged
ctubbsii merged 1 commit into
apache:2.1from
cshannon:accumulo-2830-fix
Jun 2, 2023
Merged

Make sure existing file path is used for metadata updates#3432
ctubbsii merged 1 commit into
apache:2.1from
cshannon:accumulo-2830-fix

Conversation

@cshannon
Copy link
Copy Markdown
Contributor

This fixes instances identified in #3417 where updates to existing files in the metadata table were using the normalized path by mistake and not the existing path.

This fixes instances identified in apache#3417 where updates to existing
files in the metadata table were using the normalized path by
mistake and not the existing path.
@cshannon cshannon self-assigned this May 26, 2023
@cshannon cshannon requested a review from keith-turner May 26, 2023 14:57
@cshannon
Copy link
Copy Markdown
Contributor Author

@keith-turner - This should fix the issues you identified in the other PR. Besides the fix MetadataTableUtil in finishSplit(), two spots in ManagerMetadataUtil will now use the overloaded putFile() method that takes a StoredTabletFile and uses getMetaUpdateDeleteText().


Do you think we should try and add the IT you were talking about as part of this or create a follow on?

@cshannon
Copy link
Copy Markdown
Contributor Author

cshannon commented May 26, 2023

Sunny IT tests passed and I kicked off a full IT build.

Also, I just had a thought that maybe as part of this PR (which only applies in the 2.1 branch where there is still an inheritance relationship) in StoredTabletFile we should actually override

and

and either throw a new UnsupportedOperationException or return the metadataEntry (instead of the normalized path) so we prevent any errors in the future so the normalized path is never used. In #3417 this of course wouldn't be necessary anymore.

@cshannon
Copy link
Copy Markdown
Contributor Author

Full IT passed. As commented on #3435, this PR fixes the test there.

@ctubbsii ctubbsii merged commit 5e2acad into apache:2.1 Jun 2, 2023
cshannon added a commit to cshannon/accumulo that referenced this pull request Jun 2, 2023
@cshannon cshannon deleted the accumulo-2830-fix branch June 9, 2023 14:27
@ctubbsii ctubbsii added this to the 2.1.1 milestone Jul 12, 2024
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