[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: |
|
||||||||||||
| 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). |