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

lockComplete can incorrectly skip checking if the operation context was killed, if the lock is granted quickly

    • Fully Compatible
    • ALL
    • Storage NYC 2018-12-17

      When waiting for the request to be granted when calling lockComplete, the predicate could initially return true when we call waitForConditionOrInterrupt. This would mean that we never check if the operation context was killed, and so the operation continues even if it had been killed. This can happen if the lock request was granted very quickly after lockComplete is called.

            Assignee:
            louis.williams@mongodb.com Louis Williams
            Reporter:
            samy.lanka@mongodb.com Samyukta Lanka
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: