]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
osd: Optimized EC pools - fix overaggressive assert in read_log_and_missing
authorBill Scales <bill_scales@uk.ibm.com>
Mon, 23 Jun 2025 09:24:17 +0000 (10:24 +0100)
committerAlex Ainscow <aainscow@uk.ibm.com>
Sun, 7 Sep 2025 23:10:41 +0000 (00:10 +0100)
commit7e0d6bf149e07422ce9ca45d1a4ca0234f67cc39
treecb017eeb48e072be9546a93ce06e236edae8b7f8
parent551bb50c32805fefde550068751dfad2c113d650
osd: Optimized EC pools - fix overaggressive assert in read_log_and_missing

Non-primary shards may not be updated because of partial writes. This means
that the OI verison for an object on these shards may be stale. An assert
in read_log_and_missing was checking that the OI version matched the have
version in a missing entry. The missing entry calculates the have version
using the prior_version from a log entry, this does not take into account
partial writes so can be ahead of the stale OI version.

Relax the assert for optimized pools to require have >= oi.version

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit 74e138a7c1f8b7e375568c6811a60f6bdad181b3)
src/osd/PGLog.h