Don't delete Hive and Iceberg schema locations with nonempty subdirectories#10485
Merged
losipiuk merged 2 commits intotrinodb:masterfrom Jan 12, 2022
Merged
Don't delete Hive and Iceberg schema locations with nonempty subdirectories#10485losipiuk merged 2 commits intotrinodb:masterfrom
losipiuk merged 2 commits intotrinodb:masterfrom
Conversation
6b62bca to
15b8e81
Compare
losipiuk
approved these changes
Jan 10, 2022
Member
There was a problem hiding this comment.
Is there case with EMPTY subdirectory also covered (that it does not prevent schema from being deleted)?
Member
Author
There was a problem hiding this comment.
I've changed that behavior so empty directories won't be deleted, and I added a test for that as well.
39e1966 to
11aea45
Compare
jirassimok
commented
Jan 10, 2022
Comment on lines
59
to
62
Member
Author
There was a problem hiding this comment.
These lines aren't actually changed; I just switched the order of this test and the next after renaming them, and they're so similar that git didn't realize.
11aea45 to
6cd0c32
Compare
losipiuk
reviewed
Jan 11, 2022
Member
There was a problem hiding this comment.
nit move the comment to method body.
losipiuk
approved these changes
Jan 11, 2022
Member
|
@jirassimok |
Previously, files in subdirectories weren't considered when deciding whether to delete Hive and Iceberg schema locations when the schema was dropped.
6cd0c32 to
0b7fea6
Compare
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This fixes an error in #10146 and #9767 that caused files in subdirectories to be ignored when determining whether to delete schema locations when dropping Hive and Iceberg schemas.
(Any empty subdirectories will still be deleted with the schema, though.)