]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: overaggressive assert in read_log_and_missing with optimized EC pool
authorBill Scales <bill_scales@uk.ibm.com>
Fri, 25 Apr 2025 14:03:02 +0000 (15:03 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
commit907b4b148c0f961235846afd0cf362eaa09ad13f
treed01412317c0bd3f97148f64d10b7ea271ad296f9
parent807b1f747e8d582aebf3effb8226ea1040ea8cdc
osd: overaggressive assert in read_log_and_missing with optimized EC pool

read_log_and_missing is called during OSD initializaiton to sanity check
the PG log. One of its checks is too agressive for an optimized EC pool
where because of a partial write there can be a log entry but no update
to the object on this shard (other shards will have been updated). The
fix is to skip the checks when the log entry indicates this shard was
not updated.

Only affects pool with allow_ec_optimizations flag on.

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