]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph-ci.git/commit
Fix for "data digests are inconsistent"
authorJon Bailey <jonathan.bailey1@ibm.com>
Mon, 22 Sep 2025 11:59:47 +0000 (12:59 +0100)
committerMohit Agrawal <moagrawa@redhat.com>
Mon, 9 Feb 2026 04:43:42 +0000 (10:13 +0530)
commitc92be19fb6108f73698b204bc3228d02cf65695b
treefb5296ce755811abde3297a098a81716b9460624
parent43d2152f3c433e744d44b68b1c9fbdfc68b98c7f
Fix for "data digests are inconsistent"

It was possible to see "data digests are inconsistent" being output to the logs at incorrect times due to multiple bugs. This code reorganises some of the deep scrubbing code and fixes the issues. The root cause of the issue that is being fixed here is:
* We were comparing crc buffers beyond the end of the crcs
* There was a double call to logical_to_ondisk_size when creating the crcs for zero buffers, causing them to be mis-sized
* The code was not padding smaller shards as its a requirement for shards to be the same sized when used for parity comparison.

All the above are fixed in this commit

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