]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Deleting PG should discard pwlc 66511/head
authorBill Scales <bill_scales@uk.ibm.com>
Thu, 4 Dec 2025 13:17:08 +0000 (13:17 +0000)
committerBill Scales <bill_scales@uk.ibm.com>
Thu, 4 Dec 2025 13:17:08 +0000 (13:17 +0000)
commitd78e0f22b6caee9efe99f2eebc5103a80f2c1e29
tree28afa8840c96072e5b75b033f28acdc0c01c4f5f
parent2c4d333981f86921fe40ae17bd57437cd37512fe
osd: Deleting PG should discard pwlc

When a shard of a PG is deleted it clears the PG log and rolls
forward any updates that have not been completed, this cleans up
the object store removing any objects used for rollback. This
step updates pwlc.

Normally the next step is that the PG is destoryed, but there
is a (very rare) race hazard where a new interval and peering
cycle can start which will collect the updated pwlc from this
shard. This can disrupt the shards still being used by the PG.

Invalidating the pwlc after rolling forward updates fixes
this issue. As the PG is being deleted on this shard there is
no need to retain pwlc.

Fixes: https://tracker.ceph.com/issues/74048
Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
src/osd/PeeringState.cc