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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major - P3
    • Resolution: Fixed
    • None
    • 4.1.4
    • Internal Code
    • None
    • Fully Compatible
    • ALL
    • v4.0
    • Storage NYC 2018-09-10, Storage NYC 2018-09-24, Storage NYC 2018-10-08
    • 39

    Description

      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.

      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: