[DRIVERS-1753] Allow configurable WithTransaction timeout Created: 14/May/21  Updated: 10/Jun/21  Resolved: 21/May/21

Status: Closed
Project: Drivers
Component/s: Transactions
Fix Version/s: None

Type: Improvement Priority: Unknown
Reporter: Benji Rewis (Inactive) Assignee: Unassigned
Resolution: Duplicate Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
Related
is related to GODRIVER-2001 Session.WithTransaction method endles... Closed
Driver Changes: Needed

 Description   

We currently set a non-configurable timeout of 120 seconds for WithTransaction. It's recently come up that users might want to set their own WithTransaction timeout. That way, a user could end WithTransaction earlier if there's a series of TransientTransactionErrors (something like network timeouts).

Should we consider making this configurable?



 Comments   
Comment by Durran Jordan [ 20/May/21 ]

alexander.golin as per Jeremy's comment and the CSOT spec is already in Code Review can we close?

Comment by Jeremy Mikola [ 14/May/21 ]

Convenient API for Transactions: Future Work talks about the 120-second timeout and explains that the client-side operation timeout project (DRIVERS-555) is intended to make it configurable (albeit not directly, but through the generic timeoutMS option).

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