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

Make sure deadline is not Date_t::max() when we early return due to lock timeout

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 4.1.4
    • Affects Version/s: None
    • Component/s: Internal Code
    • Labels:
      None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-09-10, Storage NYC 2018-09-24, Storage NYC 2018-10-08
    • 39

      In the DBLock constructor, we early return if _globalLock was not successfully locked. This early return was added as part of SERVER-32682 to account for deadline running out. However, in cases where deadline is Date_t::max(), we expect _globalLock.isLocked() to be true at this point, since this deadline is unreachable. An invariant should be added that the deadline is not Date_t::max() before early returning in this case.

            Assignee:
            maria.vankeulen@mongodb.com Maria van Keulen
            Reporter:
            maria.vankeulen@mongodb.com Maria van Keulen
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: