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
rgw: fix: S3 API KeyCount incorrect return. #37396
Conversation
KeyCount should return object count + common prefix count. see S3 example: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_Example_5 Related: distribution/distribution#3200 Signed-off-by: 胡玮文 <huww98@outlook.com>
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.
sounds valid--but then we should have an s3-test that checks for this
Test for: ceph/ceph#37396 Signed-off-by: 胡玮文 <huww98@outlook.com>
I add a simple assertion here ceph/s3-tests#359. Do you think that's enough? I don't want to deploy a test cluster. maybe jenkins can run it automatically? |
Ping. Does anything prevent this from merging? We want to see this in the next Octopus release. Thanks. |
Test for: ceph/ceph#37396 Signed-off-by: 胡玮文 <huww98@outlook.com>
after merging, please cherry-pick the new test case in ceph/s3-tests#359 onto the s3-tests/ceph-master branch |
jenkins test api |
API tests are still failing. And the error seems not related to this PR. I don't know if I have permission to retry. jenkins test api |
jenkins test api |
1 similar comment
jenkins test api |
Hi, after many attempts, finally all checks have passed. We hope this 1-line fix can be merged soon. Thanks. |
This is my first time here. Do I still need to open an issue in tracker as documented in https://github.com/ceph/ceph/blob/master/SubmittingPatches-backports.rst? I noticed there are some batch backports. will this be included in one of batch backports automatically? |
Hi @huww98 ; If this is needed in a backport, we need to create a tracker issue referencing this PR, indicate which releases need it (e.g., octopus), and set the state to pending-backport. |
Thank you. I've created https://tracker.ceph.com/issues/48000 |
Test for: ceph/ceph#37396 Signed-off-by: 胡玮文 <huww98@outlook.com>
KeyCount should return object count + common prefix count.
see S3 example: https://docs.aws.amazon.com/AmazonS3/latest/API/API_ListObjectsV2.html#API_ListObjectsV2_Example_5
Related: distribution/distribution#3200
Signed-off-by: 胡玮文 huww98@outlook.com
Checklist
Show available Jenkins commands
jenkins retest this please
jenkins test classic perf
jenkins test crimson perf
jenkins test signed
jenkins test make check
jenkins test make check arm64
jenkins test submodules
jenkins test dashboard
jenkins test api
jenkins test docs
jenkins render docs
jenkins test ceph-volume all
jenkins test ceph-volume tox