Repository navigation
Conversation
tchaikov
left a comment
There was a problem hiding this comment.
i think we need to address an off-by-1 bug =)
e3de597 to
29f55b4
Compare
| for (const auto& [poolid, pool] : cur->get_pools()) { | ||
| if (!prev->have_pg_pool(poolid)) { | ||
| continue; | ||
| } |
There was a problem hiding this comment.
probably we should also skip the EC pools as well following the classic, like:
// EC merge priming needs the real shard in each spg_t; the seeds
// below are synthesized with NO_SHARD, which calc_pg_role() would
// match by value on any shard this OSD holds.
if (!pool.is_replicated()) {
continue;
}if we decided not to support EC pools, we should assert(pool.is_replicated() here
|
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! |
Classic OSD runs prime_merges() in consume_map() before PGs advance so merge targets exist locally when a source calls register_merge_source(). Crimson lacked this, which could cause an assert or a hang during pg_num shrink when the target PG was not yet loaded in pg_map. This is most likely when pgp_num changes alongside pg_num: CRUSH remaps PG placement per the pool's crush rule, so a merge target can land on this OSD without a local PG object having been created yet. Derive merge participants from the OSDMap epoch range, create empty placeholders via prime_merge_participant() before broadcast_map_to_pgs(), and back off gracefully when a target is still missing at handoff time. Fixes: https://tracker.ceph.com/issues/77629 Signed-off-by: Aishwarya Mathuria <[email protected]>
29f55b4 to
69d259d
Compare
Classic OSD runs prime_merges() in consume_map() before PGs advance so merge targets exist locally when a source calls register_merge_source().
Crimson lacked this, which could cause an assert or a hang during pg_num shrink when the target PG was not yet loaded in pg_map. This is most likely when pgp_num changes alongside pg_num: CRUSH remaps PG placement per the pool's crush rule, so a merge target can land on this OSD without a local PG object having been created yet.
Derive merge participants from the OSDMap epoch range, create empty placeholders via prime_merge_participant() before broadcast_map_to_pgs(), and back off gracefully when a target is still missing at handoff time.
Fixes: https://tracker.ceph.com/issues/77629
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.