rgw: fix checksum for get part request#66042
Conversation
Signed-off-by: sungjoon_koh <sungjoon_koh@linecorp.com>
|
I made a PR to align GetObject checksum result with AWS S3 spec for partNumber. I appreciate it if you could review this.
For example:
|
Example (CRC64NVME, FULL_OBJECT):
|
|
If it seems reasonable, I will add some tests to s3-tests. Thank you! |
mattbenjamin
left a comment
There was a problem hiding this comment.
hi!
is there an external reference that clarifies that FULL_OBJECT is the correct checksumType for part checksums? Also, would you be able to write an s3-tests test for this case? We definitely don't have one.
No — in AWS S3, when the checksumType is FULL_OBJECT, it doesn’t return any checksum for individual parts — I’m not sure why. I updated it, as it seems more reasonable to return it rather than a composite value. While we could omit it, since it’s already stored, returning it might be useful. I’d like to get your opinion on this.
I’ve added a test for this PR: ceph/s3-tests#704 |
|
jenkins test windows |
|
@mattbenjamin When you get a chance, please take a look at this PR. Thank you. |
|
i prepared a test branch https://github.com/ceph/ceph-ci/commits/wip-cbodley-testing that includes #66042 and #65194, and points to an s3-tests branch https://github.com/cbodley/s3-tests/commits/wip-cbodley-testing that includes ceph/s3-tests#704 and ceph/s3-tests#699 |
passed qa. confirmed that the updated test cases are passing (see example teuthology.log): |
|
is there a tracker issue so we can backport this? |
Contribution Guidelines
To sign and title your commits, please refer to Submitting Patches to Ceph.
If you are submitting a fix for a stable branch (e.g. "quincy"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
When filling out the below checklist, you may click boxes directly in the GitHub web UI. When entering or editing the entire PR message in the GitHub web UI editor, you may also select a checklist item by adding an
xbetween the brackets:[x]. Spaces and capitalization matter when checking off items this way.Checklist
Show available Jenkins commands
jenkins test classic perfJenkins Job | Jenkins Job Definitionjenkins test crimson perfJenkins Job | Jenkins Job Definitionjenkins test signedJenkins Job | Jenkins Job Definitionjenkins test make checkJenkins Job | Jenkins Job Definitionjenkins test make check arm64Jenkins Job | Jenkins Job Definitionjenkins test submodulesJenkins Job | Jenkins Job Definitionjenkins test dashboardJenkins Job | Jenkins Job Definitionjenkins test dashboard cephadmJenkins Job | Jenkins Job Definitionjenkins test apiJenkins Job | Jenkins Job Definitionjenkins test docsReadTheDocs | Github Workflow Definitionjenkins test ceph-volume allJenkins Jobs | Jenkins Jobs Definitionjenkins test windowsJenkins Job | Jenkins Job Definitionjenkins test rook e2eJenkins Job | Jenkins Job DefinitionYou must only issue one Jenkins command per-comment. Jenkins does not understand
comments with more than one command.