Failure to journal setting 0xEEEEEEEE in NamespaceDetails::addDeletedRec

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Done
    • Priority: Major - P3
    • None
    • Affects Version/s: 2.0.7, 2.2.0
    • Component/s: Internal Code, Storage
    • None
    • ALL
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      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.

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

              Created:
              Updated:
              Resolved: