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

LockMongoFilesShared::era can roll over

    • Type: Icon: Bug Bug
    • Resolution: Won't Fix
    • Priority: Icon: Minor - P4 Minor - P4
    • None
    • Affects Version/s: None
    • Component/s: Concurrency, MMAPv1
    • Labels:
      None
    • Storage Execution
    • ALL

      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.

            Assignee:
            backlog-server-execution [DO NOT USE] Backlog - Storage Execution Team
            Reporter:
            schwerin@mongodb.com Andy Schwerin
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: