You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
base,sstable/block: dump block data on checksum mismatch errors
When Pebble encounters a bad checksum error, it is fatal and typically
impossible to get more information about what went wrong. This change
attaches the raw block data to the checksum mismatch error so it can be
extracted into DataCorruptionInfo and logged as a hex dump.
A new transparent wrapper error type CorruptBlockData carries the raw
block bytes without affecting Error() output, Sentry reporting, or wire
encoding. ValidateChecksum attaches the block data on checksum failure.
reportCorruption extracts the data into DataCorruptionInfo, and
MakeLoggingEventListener logs it as hex.
Co-Authored-By: roachdev-claude <roachdev-claude-bot@cockroachlabs.com>
0 commit comments