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

mongodump --repair does not terminate gracefully under WiredTiger

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Major - P3 Major - P3
    • None
    • 2.8.0-rc0
    • Storage, Tools
    • Fully Compatible
    • ALL

    Description

      When the repair cursor used by mongodump --repair hits a damaged region, mongod aborts with a checksum error:

      2014-11-18T08:05:55.281-0500 E STORAGE  [conn1] WiredTiger (0) [1416315955:281461][41709:0x10a284000], file:collection-2-8144621339125293100.wt, cursor.next: read checksum error [4096B @ 17756160, 2609031421 != 63499111]

      causing mongodump to terminate abruptly:

      > mongodump --repair
      2014-11-18T08:01:01.498-0500	writing repair of test.c to dump/test/c.bson
      2014-11-18T08:01:01.513-0500	repair error: error reading collection: EOF

      The resulting .bson file is then abruptly terminated:

      > bsondump dump/test/c.bson >/dev/null
      2014-11-18T08:04:29.177-0500	unexpected EOF

      Aside from looking bad, this leaves quite a few (several thousand in my test) recoverable records unrecovered.

      Attachments

        Activity

          People

            spencer.jackson@mongodb.com Spencer Jackson
            bruce.lucas@mongodb.com Bruce Lucas (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: