]> 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)
committerJon Bailey <jonathan.bailey1@ibm.com>
Thu, 29 Jan 2026 09:55:32 +0000 (09:55 +0000)
commitf34e87f618f57f3a02d3c0dfee9ffd63637a7bda
treead129ba679589b24884bc4293165f0d4191fd5e1
parentb8ca75d41795fa5cf4bbf5d67ec29654b6084e86
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