Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-1558

Documents should write checksum on write, verify checksum on read

    XMLWordPrintable

    Details

    • Type: Task
    • Status: Closed
    • Priority: Major - P3
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.8.0-rc0
    • Component/s: Storage
    • Labels:
      None
    • Environment:
      All platforms
    • Backwards Compatibility:
      Fully Compatible

      Description

      In InnoDB, crc page checksums are written as dirty pages are flushed from the buffer pool. On read, these checksums are verified. If the checksum fails, the server crashes awaiting intervention (startup with --innodb-force-recovery=N). At least for InnoDB, the cost is very little, since it takes microseconds around an operation that takes about milliseconds. The storage cost is also minimal.

      This is very helpful in failure scenarios. Check/repair in mongodb can currently only detect meta data corruption!

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                17 Vote for this issue
                Watchers:
                23 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: