The timeout in the LockTimeout error message in Locker::lockGlobal is incorrect

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Unresolved
    • Priority: Major - P3
    • None
    • Affects Version/s: None
    • Component/s: None
    • Catalog and Routing
    • 1
    • None
    • 3
    • TBD
    • 🟦 Shard Catalog
    • None
    • None
    • None
    • None
    • None
    • None
    • 0

      Here is an example of an error message:

      "error":"LockTimeout: Unable to acquire ticket with mode '2' within a max lock request timeout of '1ms' milliseconds."
      

       
      The timeout is calculated as (Date_t::now() - beforeAcquire) but the message is created immediately so Date_t::now() is not the timestamp when the timeout occurs. It looks like timeout should be calculated as (deadline - beforeAcquire).

            Assignee:
            Unassigned
            Reporter:
            Cheahuychou Mao
            Votes:
            0 Vote for this issue
            Watchers:
            8 Start watching this issue

              Created:
              Updated: