[DOCS-11716] Docs for SERVER-33244: Make all lock acquisitions for transactions have 0 second timeout Created: 17/May/18  Updated: 29/Oct/23  Resolved: 11/Jun/18

Status: Closed
Project: Documentation
Component/s: None
Affects Version/s: None
Fix Version/s: 4.0.0-rc0

Type: Task Priority: Major - P3
Reporter: Kay Kim (Inactive) Assignee: Kay Kim (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Documented
documents SERVER-33244 Make all lock acquisitions for transa... Closed
Related
is related to DOCS-11505 Document Transactions Closed
Participants:
Days since reply: 5 years, 35 weeks, 2 days ago
Epic Link: DOCS: 4.0 Server

 Description   

Description:

New server parameter, maxTransactionLockRequestTimeoutMillis. Start up parameter and settable via setParameter, gettable via getParameter.

Server parameter that dictates the max number of milliseconds that any transaction lock request will wait for lock acquisition. If an operation provides a greater timeout in a lock request, maxTransactionLockRequestTimeoutMillis will override it. If this is set to a negative value, it is inactive and nothing will be overridden. – should probably message this as set maxTransactionLockRequestTimeoutMillis to -1 to unset the override, and forget about the rest of the allowable negative values.

The default of 0 milliseconds will ensure that transaction operations will immediately give up trying to take any lock if it is not immediately available. This prevents deadlocks between transactions. Setting a non-zero, positive value will also help obviate deadlocks, but won't abort a potentially deadlocked transaction operation for however long has been set.

Scope of changes:

  • 4.0.txt
  • transactions
  • parameters

Impact to other docs outside of this product:

MVP:

Resources:

Engineering Ticket Description:

Txns should do no waiting for locks, they should fail the lock acquisition immediately if there's any conflict. They should also abort the transaction if that happens.



 Comments   
Comment by Githook User [ 11/Jun/18 ]

Author:

{'username': 'kay-kim', 'name': 'kay', 'email': 'kay.kim@10gen.com'}

Message: DOCS-11716: maxTransactionLockRequestTimeoutMillis
Branch: master
https://github.com/mongodb/docs/commit/75afc391bb80f7affd7ea835cdbf7978ade96d0d

Generated at Thu Feb 08 08:03:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.