Repository navigation
rgw: Fix race condition on FIFO client on new head creation - #48632
Conversation
57e080d to
21f7259
Compare
21f7259 to
311b68c
Compare
f7734aa to
287b627
Compare
287b627 to
7d5c6b0
Compare
9b6e2ac to
cfc3bde
Compare
|
https://github.com/adamemerson/ceph/blob/wip-57562/src/rgw/cls_fifo_legacy.cc#L691 https://github.com/adamemerson/ceph/blob/wip-57562/src/rgw/cls_fifo_legacy.cc#L696 |
792c27a to
74848f8
Compare
3f46639 to
f9f0c09
Compare
f9f0c09 to
e20f86b
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
54997c5 to
3297026
Compare
|
This pull request can no longer be automatically merged: a rebase is needed and changes have to be manually resolved |
Fix logic error where disjunction was used instead of conjunction. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
Part tags make part creation and setting the head non-idempotent, leading to issues where racing RGWs may get confused about the correct tag for a part. (Or worse, potentially have the metadata header hold different value for a part than the part's header.) Consistently only requires that all nodes agree on the number. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
Except for the version type, where only versions with the same tag are comparable. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
Since we no longer use tags, journal entries are just an operation and a part number. If an entry being added is already in the journal, skip it. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
Only increment the version if we make an actual change. Return whether we have changed something or not so the OSD side can skip writing if there's no change. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
|
Someone please review this. It's ready to go in and be backported. |
mattbenjamin
left a comment
There was a problem hiding this comment.
don't feel expert enough to approve, but lgtm
We don't really need the overhead and complexity of a multimap. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
First, make `_prepare_new_head` take the new head part number, so two calls racing from the same push will attempt to create the same head. Also remove the neorados FIFO since it doesn't have all the bug fixes in the legacy version and will be rewritten in terms of `async_compose` anyway. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
A racing client may delete the part we're trying to push to. Use `assert_exists()` to check, and re-read metadata if we receive -ENOENT. Fixes: https://tracker.ceph.com/issues/57562 Signed-off-by: Adam C. Emerson <[email protected]>
A thorough addressing of races and possible inconsistencies in FIFO code.
Fixes: https://tracker.ceph.com/issues/57562
Signed-off-by: Adam C. Emerson [email protected]
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. "pacific"), please refer to Submitting Patches to Ceph - Backports for the proper workflow.
Checklist
Show available Jenkins commands
jenkins retest this pleasejenkins test classic perfjenkins test crimson perfjenkins test signedjenkins test make checkjenkins test make check arm64jenkins test submodulesjenkins test dashboardjenkins test dashboard cephadmjenkins test apijenkins test docsjenkins render docsjenkins test ceph-volume alljenkins test ceph-volume toxjenkins test windows