Uploaded image for project: 'WiredTiger'
  1. WiredTiger
  2. WT-7021

Review the design of the global operation timeout

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Open
    • Priority: Major - P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: Backlog
    • Component/s: None
    • Labels:
      None

      Description

      Currently, we have a timeout mechanism to rollback the operations that take too long, which may leads to cache stuck. The way it works is that user can set a default timeout in wiredtiger open and the default timeout will be applied to all api calls, including the cursor operations, session operations like verify, salvage, checkpoint, and etc., and connection operations like rollback to stable, and etc. The default timeout can be overriden by a timeout at the transaction level. However, if the transaction level timeout is not specified, the default timeout is applied.

      This mechanism is initially designed to help reduce the cache stuck in test/format caused by slow cursor operations so the default timeout is set to a relatively small value 2 seconds.

      Since this default timeout also applies to other session operations, which usually takes substantially more time to finish, like salvage, checkpoint, verify, and etc., the timeout mechanism may result to unexpected failures for these operations.

      We need to review the design of the timeout mechanism to explore other alternatives and in the meantime minimize the impact to the api to keep the new mechanism compatible to the old api.

      Potentially we still want to keep the global timeout setting to reduce the needs for the user to specify the timeout at the individual operation level. To improve the current mechanism, we may want to make the global timeout only applying to some of the cursor operations instead of all api operations.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              backlog-server-storage-engines Backlog - Storage Engines Team
              Reporter:
              chenhao.qu Chenhao Qu
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated: