]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commit
osd: EC Optimizations fix proc_master_log handling of splits
authorBill Scales <bill_scales@uk.ibm.com>
Wed, 21 May 2025 17:16:50 +0000 (18:16 +0100)
committerLaura Flores <lflores@ibm.com>
Wed, 9 Jul 2025 15:47:24 +0000 (15:47 +0000)
commitd3def6dea4d303f846ecbc4f7c8d6568caf59149
tree92d5c8b3f69b7810730fbff91e3d73368e978f5a
parentb997d00b7ea7abc87696a316c09d2546aac9e448
osd: EC Optimizations fix proc_master_log handling of splits

For optimized EC pools proc_master_log needs to deal with
the other log being merged being behind the local log because
it is missing partial writes. This is done by finding the
point where the logs diverge and then checking whether local
log entries have been committed on all the shards.

A bug in this code meant that after a PG split (where there
may be gaps in the log due to entries moving to the other PG)
that the divergence point was not found and committed
partial writes ended up being discarded which creates
unfound objects.

Signed-off-by: Bill Scales <bill_scales@uk.ibm.com>
(cherry picked from commit 5f687c4a182b18cab31476854a6b04a46e8c8464)
src/osd/PeeringState.cc