Skip to content

Commit

Permalink
SPEC-1168 mongo-orchestration reduces transaction timeout (#497)
Browse files Browse the repository at this point in the history
  • Loading branch information
ShaneHarvey committed Feb 25, 2019
1 parent 9ab3b33 commit b6a9723
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion source/transactions/tests/README.rst
Expand Up @@ -438,7 +438,9 @@ attempt fails on mongos A and is retried on mongos B, mongos B will block
waiting for the transaction to complete. However because the initial commit
attempt failed, the command will only complete after the transaction is
automatically aborted for exceeding the shard's
transactionLifetimeLimitSeconds setting.
transactionLifetimeLimitSeconds setting. `SERVER-39726`_ requests that
recovering the outcome of an uncommitted transaction should immediately abort
the transaction.

The second case is when a *single-shard* transaction is committed successfully
on mongos A and then explicitly committed again on mongos B. Mongos B will also
Expand All @@ -454,6 +456,12 @@ prematurely timing out any tests' transactions. To decrease the timeout, run::

db.adminCommand( { setParameter: 1, transactionLifetimeLimitSeconds: 3 } )

Note that mongo-orchestration >=0.6.13 automatically sets this timeout to 3
seconds so drivers using mongo-orchestration do not need to run these commands
manually.

.. _SERVER-39349: https://jira.mongodb.org/browse/SERVER-39726

.. _SERVER-39349: https://jira.mongodb.org/browse/SERVER-39349

**Changelog**
Expand Down

0 comments on commit b6a9723

Please sign in to comment.