-
Notifications
You must be signed in to change notification settings - Fork 9.1k
HADOOP-XXXXX. S3Guard tombstones can mislead about directory empty status and other fixes - wip #1077
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HADOOP-XXXXX. S3Guard tombstones can mislead about directory empty status and other fixes - wip #1077
Conversation
🎊 +1 overall
This message was automatically generated. |
I've checked this out & will work on it. Not failing for me either. What I'm thinking of doing
|
I can replicate the problem when the dir being worked on is actually the root path /. This is consistent with all the failures happening in the root directory tests. I'd feared it was because the root dir is the one place where any file-under-a-tombstone would cause problems, but it could be that it is the sole place where our filtering breaks, because the prefix returned in the LIST == the name of a file just deleted |
…eproduce the failure
…ombstone problem" can be replicated You don't get it on deeper paths because the full prefix is returned "/test/dir/deleted", which doesn't match the short name of a tombstone. this helps explain why we only see it on the root dir tests. Change-Id: I6e00b39684b7f3ff76eb84ee877128fa01c0f2bc
c3c60ec
to
e665f2d
Compare
🎊 +1 overall
This message was automatically generated. |
the test Although we will have the following errors after the change:
So at least we are checking for this. It would be better if we had a unit test for this imho. I'll create one if I can - I'll check the feasibility. |
🎊 +1 overall
This message was automatically generated. |
I found the out why the listing and recovering from an OOB after what @steveloughran described is not working as expected: we don't do the tombstoned entry filtering when getting a listing. |
…MetadataStore interface Fix things based on review and checkstyle issues Picked from my PR (cherry picked from commit b7bbdb66ffcf6d6bc5993f3d33cbe26ad5f3618d) Conflicts: hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/S3AFileSystem.java hadoop-tools/hadoop-aws/src/main/java/org/apache/hadoop/fs/s3a/s3guard/DynamoDBMetadataStore.java hadoop-tools/hadoop-aws/src/test/java/org/apache/hadoop/fs/s3a/s3guard/ITestDynamoDBMetadataStore.java
🎊 +1 overall
This message was automatically generated. |
Fixed in S3A: rm should return false on non recursice root delete Todo: testRootTombstones will fail if run parallely, but succeed if run by itself. Maybe not real root dir?
🎊 +1 overall
This message was automatically generated. |
SAMZA-2249:added 1.2 release blog
Uh oh!
There was an error while loading. Please reload this page.