Repository navigation
rgw: add checksum type and algorithm in S3 APIs - #66493
sungjoon-koh wants to merge 4 commits into
Conversation
27eb103 to
3110763
Compare
|
|
Reshard test |
|
Additional patch for ListObjectsV2
|
|
Add s3-tests for this PR |
mattbenjamin
left a comment
There was a problem hiding this comment.
am I correct that this is putting string names for checksum algorithms, plus "FULL_OBJECT" or "COMPOSITE" as strings into bucket index entries?
could we maybe use the well-known (to RGW source code) ordinals for the algorithms to reduce size (to 2 bytes I think) and some shorthand equivalent for full vs composite (since its information load is 1bit)?
|
@mattbenjamin Thank you for the review. I’ll fix it as you suggested. |
dbf6a17 to
f4a2ba1
Compare
|
jenkins test make check |
|
jenkins test make check arm64 |
|
jenkins test make check |
|
jenkins test make check arm64 |
Signed-off-by: sungjoon_koh <[email protected]>
Signed-off-by: sungjoon_koh <[email protected]>
Signed-off-by: sungjoon_koh <[email protected]>
f4a2ba1 to
2c9a589
Compare
|
@mattbenjamin Thank you for the review! |
| static constexpr uint16_t CKSUM_TYPE_MASK = | ||
| (FLAG_COMPOSITE|FLAG_FULL_OBJECT); |
There was a problem hiding this comment.
can you say more about why we need this CKSUM_TYPE_MASK?
There was a problem hiding this comment.
@cbodley I was thinking it might be better to introduce CKSUM_TYPE_MASK as (FLAG_COMPOSITE | FLAG_FULL_OBJECT), so that we can check only those two flags without being affected by FLAG_COMBINED. I think this could help clarify the logic, but please let me know if you see a better way.
There was a problem hiding this comment.
it's just not clear why we need to mask other bits out of what we store in rgw_bucket_dir_entry_meta::cksum_flags. if we're storing cksum_flags in the index, i think we should store all of the flags, not just a subset
won't these checks in rgw_rest_s3.cc work fine without masking?
if (iter->meta.cksum_flags & rgw::cksum::Cksum::FLAG_COMPOSITE) {74b7b4d to
bf42419
Compare
Signed-off-by: sungjoon_koh <[email protected]>
bf42419 to
989b80f
Compare
|
jenkins test api |
|
@cbodley Could you please check it when you have a time? |
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
|
This pull request has been automatically marked as stale because it has not had any activity for 60 days. It will be closed if no further activity occurs for another 30 days. |
|
This pull request has been automatically closed because there has been no activity for 90 days. Please feel free to reopen this pull request (or open a new one) if the proposed change is still appropriate. Thank you for your contribution! |
tracker: 74071
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.