Repository navigation
crimson/osd: fix PG splitting logic during map gaps - #67225
Conversation
| pg->handle_advance_map(next_map, rctx); | ||
| return check_for_splits(*from, next_map); | ||
| // Use the last OSDMap epoch to check for splits consecutively. | ||
| epoch_t last_epoch = pg->get_osdmap_epoch(); |
|
Can we enable pg splits in the rados tests where it was disabled with this fix? |
76dfe04 to
4a223d6
Compare
From my testing, this PR fixes https://tracker.ceph.com/issues/74504 which was easy to test because it was occurring frequently. |
I'm ok with both options! Your call :) |
4a223d6 to
e9085d0
Compare
|
jenkins test make check |
8d79c11 to
eb7733d
Compare
There was a problem hiding this comment.
In BlueStore's path, the sequential processing means the last split_collection call
(highest bits child) sets the final parent bits.
In SeaStore with parallel_for_each, separate transactions race, and a lower-bits child can overwrite the correct value.
Both Store's transaction processing must be ordered and serialized. SeaStore allows concurrent transactions for diffrent pgs (no 2 concurrent transactions for the same pg/coll) - which could perhaps expose the issue mentioned above(?).
Regardless, serializing split_children iteration looks like a better approach here.
There was a problem hiding this comment.
Yes that's correct. The issue was exposed because due to concurrent transactions for the children pgs.
When the OSD advances through a range of maps (map gap), it must ensure that every epoch transition is evaluated for potential PG splits. This patch updates the split check to use the current OSDMap epoch from the PG as the baseline for each step. This guarantees that splits are checked consecutively for every map in the sequence, preventing intermediate splits from being missed during map gap. Fixes: https://tracker.ceph.com/issues/74504 Signed-off-by: Aishwarya Mathuria <[email protected]>
…orkloads" This reverts commit 1ce8bf5. Signed-off-by: Aishwarya Mathuria <[email protected]>
Currently, we use parallel_for_each when splitting a PG into multiple children. In BlueStore's path, the sequential processing means the last split_collection call (highest bits child) sets the final parent bits. In SeaStore with parallel_for_each, separate transactions race, and a lower-bits child can overwrite the correct value. With incorrect split_bits, the parent PG's list_objects computes a wider hash range than it should, causing do_delete_work to list and delete objects that actually belong to a child PG. When that child later tries to access those objects, SeaStore hits an unexpected ENOENT and aborts. Fixes: https://tracker.ceph.com/issues/74982 Signed-off-by: Aishwarya Mathuria <[email protected]>
eb7733d to
003cc27
Compare
|
However, this build did include #67488. |
This bug seems to block other seastore PRs, I think we can merge without waiting :) |
|
This is an automated message by src/script/redmine-upkeep.py. I have resolved the following tracker ticket due to the merge of this PR: No backports are pending for the ticket. If this is incorrect, please update the tracker |
|
When the OSD advances through a range of maps (map gap), it must ensure that every epoch transition is evaluated for potential PG splits.
This patch updates the split check to use the last OSDMap epoch from the PG as the baseline for each step. This guarantees that splits are checked consecutively for every map in the sequence, preventing intermediate splits from being missed during map gap.
Fixes: https://tracker.ceph.com/issues/74504
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.