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

Failure to journal setting 0xEEEEEEEE in NamespaceDetails::addDeletedRec

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major - P3 Major - P3
    • None
    • 2.0.7, 2.2.0
    • Internal Code, Storage
    • None
    • ALL

    Description

      In NamespaceDetails::addDeletedRec() at line 222 in mongo/db/namespace_details.cpp in today's master branch, the write of "0xeeeeeeee" is not added to the journal list with getDur()->writingPtr(). This is defensive code where we do not expect this value to ever be seen because deleted records are not supposed to be read as data, but we have seen cases where the log shows "Assertion: 10334:Invalid BSONObj size: -286331154 (0xEEEEEEEE)" so we know that this can happen.

      It is not clear that this bug is the cause of this error, but the code is wrong; all writes to memory mapped files should be journaled.

      Attachments

        Activity

          People

            tad Tad Marshall
            tad Tad Marshall
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: