Repository navigation
osd/PeeringState: fix proc_master_log divergence check vs olog.head - #70149
Conversation
`auto op = olog.log.end()` never moved, so `op->version` dereferenced the end iterator (UB since 5f687c4). It also rolled pwlc back to the log tail when olog.log.back() < p->version but p->version <= olog.head (log gaps after a PG split, or apply_pwlc advancing olog.head past the last entry), misjudging acked partial writes as divergent; commit 1b44fd9 made this the rollback branch. Use olog.log.empty()/back() and accept p->version <= olog.head like the empty-log branch. Signed-off-by: Sun Yuechi <[email protected]>
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
16 similar comments
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
Thank you for your contribution. Since you, the author, are not a member of the Ceph GitHub Org yet, our CI will not automatically run. Any member of the Ceph Org may comment "ok - to - test" (without the dashes) to allow the Jenkins jobs to run. |
|
ok to test |
|
@bill-scales hi Bill, could you please help review this change? |
bill-scales
left a comment
There was a problem hiding this comment.
@sunyuechi Thank you for the fix, the change looks good.
I've opened a tracker ticker for this issue so that the fix can be backported to the umbrella and tentacle releases. I'll take care of doing that.
I've been writing some unit tests extending src/test/osd/TestPeeringState.cc to test these code paths, if you do not object I'll push another commit with the unit tests to this PR.
|
@bill-scales Thanks! Please go ahead and push the unit tests. |
Add unittest cases for the 3 code paths in proc_master_log that were fixed by the previous commit where there are diveregent entries between the two logs and pwlc needs to be updated. Signed-off-by: Bill Scales <[email protected]>
|
Added unit tests to cover all 3 fixed code paths, ready for QA testing |
|
This PR has been added to wip-bharath29-testing-20260924.231744-main. |
The new snapshot brings in these fixes: - osd/PeeringState: fix the divergence check against olog.head (ceph/ceph#70149) - osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965) - osdc: fix ReplicaSplitOp chunk distribution, reassembly and small multi-op reads (ceph/ceph#70207) - erasure-code/isa: default the technique when the profile has none (ceph/ceph#72215) - mount.ceph: report kernels without aes256k key support (ceph/ceph#72159) - rgw/es: require both major and minor in the ES version (ceph/ceph#70007) - build: turn WITH_RADOSGW_LANCEDB off where lance cannot build (ceph/ceph#71935) - cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657) - cmake/boost: do not pass context-impl to the headers step (ceph/ceph#71249) - rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051) - test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463) - qa/lsan.supp: match OpenSSL error state on ERR_set_mark (ceph/ceph#71460) Signed-off-by: Sun Yuechi <[email protected]>
The new snapshot brings in these fixes: - osd/PeeringState: fix the divergence check against olog.head (ceph/ceph#70149) - osd: assert OI_ATTR is present in rollback_setattrs (ceph/ceph#70965) - osdc: fix ReplicaSplitOp chunk distribution, reassembly and small multi-op reads (ceph/ceph#70207) - erasure-code/isa: default the technique when the profile has none (ceph/ceph#72215) - mount.ceph: report kernels without aes256k key support (ceph/ceph#72159) - rgw/es: require both major and minor in the ES version (ceph/ceph#70007) - build: turn WITH_RADOSGW_LANCEDB off where lance cannot build (ceph/ceph#71935) - cmake: make SIMD_COMPILE_FLAGS a list (ceph/ceph#72657) - cmake/boost: do not pass context-impl to the headers step (ceph/ceph#71249) - rpm: let ceph-mgr-cephadm require routes (ceph/ceph#73051) - test/mds: widen result waits in ReleaseAwait (ceph/ceph#70463) - qa/lsan.supp: match OpenSSL error state on ERR_set_mark (ceph/ceph#71460) Signed-off-by: Sun Yuechi <[email protected]>
auto op = olog.log.end()never moved, soop->versiondereferencedthe end iterator (UB since 5f687c4). It also rolled pwlc back to the
log tail when
olog.log.back() < p->versionbutp->version <= olog.head(log gaps after a PG split, or
apply_pwlcadvancingolog.headpast thelast entry), misjudging acked partial writes as divergent; commit
1b44fd9 made this the rollback branch.
Fixes: https://tracker.ceph.com/issues/79706
Checklist