LockMongoFilesShared::era can roll over

XMLWordPrintableJSON

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

      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:
              [DO NOT USE] Backlog - Storage Execution Team
              Reporter:
              Andy Schwerin
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated:
                Resolved: