Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
2.0.7, 2.2.0
-
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.