-
Notifications
You must be signed in to change notification settings - Fork 588
HDDS-10399. Fixed error in shallow listing an empty directory LEGACY/OBS buckets. #6259
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
Conversation
…in LEGACY/OBS buckets.
|
@whbing @captainzmc @ivandika3 Can you please take a look? |
|
@SaketaChalamchala Thanks for this pr ! BTW, I'm a little confused in what scenario need mkdir in an OBS bucket. It's not allowed to mkdir in an OBS bucket when using |
You're right mkdir on OBS bucket using ofs:// is not allowed but, it is allowed using s3a://. That's the operation that is failing. |
ivandika3
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the patch. LGTM +1.
|
Thanks @SaketaChalamchala for the patch, @ivandika3, @whbing for the review. |
…ctory in non-FSO bucket (apache#6259) (cherry picked from commit 0cd6b3b)
…g empty directory in non-FSO bucket (apache#6259) (cherry picked from commit 0cd6b3b) Change-Id: I74e39360a770140ee2a07663ea347675fb5fa648
What changes were proposed in this pull request?
When shallow listing an empty directory in a LEGACY/OBS bucket we see the error mentioned below. The fix includes adding a condition to check if list status returns any statues before removing the startKey from the previous round in
OzoneBucket.javaWhat is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10399
How was this patch tested?
Added Unit Tests.