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

Documents should write checksum on write, verify checksum on read

    • Type: Icon: Task Task
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 2.8.0-rc0
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Environment:
      All platforms
    • Fully Compatible

      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!

            Assignee:
            Unassigned Unassigned
            Reporter:
            morgo Morgan Tocker
            Votes:
            17 Vote for this issue
            Watchers:
            23 Start watching this issue

              Created:
              Updated:
              Resolved: