Lock acquisition timeout should always throw rather than fail silently with LOCK_TIMEOUT result

XMLWordPrintableJSON

    • Type: Bug
    • Resolution: Fixed
    • Priority: Major - P3
    • 4.1.9
    • Affects Version/s: None
    • Component/s: Storage
    • None
    • Fully Compatible
    • ALL
    • Storage NYC 2019-02-11, Storage NYC 2019-02-25
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      SERVER-39106 fixed a problem about lock acquisition: When ticket acquisition times out due to _maxLockTimeout, it should throw rather than fail silently with LOCK_TIMEOUT result.

      However, the contract of lock acquisition is not very clear right now:

      1. If the lock acquisition times out due to _maxLockTimeout, it should throw.
      2. If the lock acquisition times out due to deadline specified by callers, it should silently return LOCK_TIMEOUT

      This ticket is to try to simplify the contract so that it always throw an exception.

            Assignee:
            Xiangyu Yao (Inactive)
            Reporter:
            Xiangyu Yao (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: