-
Notifications
You must be signed in to change notification settings - Fork 511
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
HDDS-11661. ITestS3AContractBulkDelete fails with FSO bucket #7572
base: master
Are you sure you want to change the base?
Conversation
Thanks @chungen0126 for the patch, and the description of the problem.
I think we should consider client-server compatibility across versions. What if old client sends the request, without Current xcompat tests probably do not cover this operation. |
@adoroszlai Thanks for your review.
That sounds like a problem. I am adding a new argument for requests from S3 to let the server know where the requests are coming from and only check the requests from S3. This might solve the problem. Do you think we need to add a test case in the xcompat tests for this? |
Instead of adding the flag, please use Lines 474 to 475 in 008f9a6
Yes, please. |
2f7812f
to
409f2c4
Compare
I think adding new client versions is still blocked on #6932 or else they will not be correctly validated cc @swamirishi |
Nice catch. We need to get that one fixed. This contract test can wait. |
Thanks @errose28 for the mentioning it. I actually encounter that problem. |
What changes were proposed in this pull request?
New contract test ITestS3AContractBulkDelete (added by HADOOP-18679 in Hadoop 3.4.1) is failing with FSO bucket.
Bulk delete doesn't delete directories. Therefore, It passed path without trailing slash. In the original implementation, directories would be deleted if paths were passed without trailing slashes.
To fix this, delete the directory only if the trailing slash present in the path on the server side. Also, make sure that directory paths are passed with trailing slashes on the client side.
https://issues.apache.org/jira/browse/HDDS-11661
How was this patch tested?
CI: https://github.com/chungen0126/ozone/actions/runs/12308665244