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

LockMongoFilesShared::era can roll over

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor - P4 Minor - P4
    • None
    • None
    • Concurrency, MMAPv1
    • None
    • Storage Execution
    • ALL

    Description

      The counter is only 32 bits. Because it can roll over, a PageFaultException that gets caught and then not handled for a long time might think that the era hasn't changed when in fact it has advanced 2^32 times. This could lead to calling Record::touch on invalid memory.

      The easiest fix is to make it a 64-bit counter.

      Attachments

        Activity

          People

            backlog-server-execution Backlog - Storage Execution Team
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: