]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
Fix issue where it is possible for stats to be recovered incorrectly during merge...
authorJon Bailey <jonathan.bailey1@ibm.com>
Tue, 27 Jan 2026 14:29:05 +0000 (14:29 +0000)
committerJon Bailey <jonathan.bailey1@ibm.com>
Thu, 29 Jan 2026 09:55:32 +0000 (09:55 +0000)
commitea10c89a7889a1e7428ffa4b8f1d1ea1a86af2b9
tree93a69c08fd4ecd69618d9e23f4a8bc76c83b779b
parent9a7fe693518c3cce3273088f372dcde3857fe7d4
Fix issue where it is possible for stats to be recovered incorrectly during merge operations.

To hit the problem, after you take a snapshot, you:
* Perform a write
* Perform a partial write that only involves the primary
* Perform a partial write that only involves a non-primary
* Primary goes down
* Primary comes up
* Primary goes through peering and chooses a non-primary shard as its peering partner

The result of these operations is the stats reporting a size difference equal to the partial write that only involves the primary, as the non-primary is not aware of the clone operation by design and so that is missing update is copied to the osd. This commit prevents it by invalidating the stats in the case where this happens. There will be a future commit to further narrow the set of cases where stats invalidations can happen.

Signed-off-by: Jon Bailey <jonathan.bailey1@ibm.com>
src/osd/PeeringState.cc