]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commit
osd: Deleting PG should discard pwlc 68709/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>
Fri, 1 May 2026 07:52:32 +0000 (08:52 +0100)
commit1bc86ed2d65f29026d778f0de68ecd7bbb7700d1
treef4413e8a0583723cb34247d776f2a33062b798dc
parent6502188013c056d9eefbbd27e1adaabfffa1319f
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>
(cherry picked from commit d78e0f22b6caee9efe99f2eebc5103a80f2c1e29)
src/osd/PeeringState.cc