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

Extend wt_binary_decode.py to decode bson data in a value cell

    • Type: Icon: Improvement Improvement
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • WT11.3.0, 8.1.0-rc0
    • Affects Version/s: None
    • Component/s: Tools
    • None
    • Storage Engines
    • 5
    • 2024-06-25 - Climbing BTrees, 2024-07-09 - Nyan Cat

      The wt_binary_decode tool can be used to decode a hex dump from the WiredTiger logging when a corrupt block is found and is dumped in 1KB chunks. Currently, the raw byte content of cells can be output as a multi-line string with hex and printable characters. In the case of corruptions found in MongoDB the bytes corresponding to a WT_CELL_VALUE should be decodable BSON.

      This ticket is to extend the tool to decode these bytes as BSON and print the result in a readable JSON format. If the bytes cannot be decoded a useful message about the contents should be outputted instead.

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

              Created:
              Updated:
              Resolved: