Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-10563

Print calculated checksum and expected checksum when we have a checksum mismatch

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.2.0, 7.0.0-rc0
    • Affects Version/s: None
    • Component/s: None
    • Labels:
    • 3
    • 2023-02-23 "Stoney Baloney", 2023-03-21 Ellen Ripley

      When there is a checksum mismatch we have two messages in __wt_block_read_off. One, if there is a checksum mismatch in the header and another if there is a checksum mismatch in the rest of the block. The header mismatch message includes the calculated checksum and the expected checksum. We should do the same for other message (shown below) regarding the rest of the block to better understand what has occurred when we encounter a blocksum mismatch.

       

                  __wt_errx(session,
                    "%s: potential hardware corruption, read checksum error for %" PRIu32
                    "B block at offset %" PRIuMAX
                    ": calculated block checksum doesn't match expected checksum",
                    block->name, size, (uintmax_t)offset);
      

            Assignee:
            sean.watt@mongodb.com Sean Watt
            Reporter:
            sean.watt@mongodb.com Sean Watt
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: