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

Lock acquisitions won't always obey the OpContext's deadline or interruption

    XMLWordPrintableJSON

Details

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major - P3 Major - P3
    • None
    • None
    • Concurrency
    • None
    • Storage Execution
    • ALL
    • Execution EMEA Team 2023-07-24

    Description

      There are multiple lock manager RAII classes which take both OperationContext and Locker (or both) in addition to a deadline argument. The behaviour of whether the OpContext's deadline will be obeyed seems dependent on what combination is passed for these three. For example, passing OpCtx=nullptr, Locker, deadline=Date_t::max() will not obey the deadline of the operation, because the OpContext is not passed down to the waiting method of the lock manager.

      We have runWithDeadline methods on the OperationContext which will allow us to not have to pass the deadline explicitly.

      Attachments

        Activity

          People

            yujin.kang@mongodb.com Yujin Kang Park
            kaloian.manassiev@mongodb.com Kaloian Manassiev
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: