-
Type: New Feature
-
Resolution: Won't Do
-
Priority: Trivial - P5
-
None
-
Affects Version/s: None
-
Component/s: Transactions
-
None
-
Go Drivers
There is no simple way to configure the transaction retry policy.
The hardcoded policy will immediately retry transactions in case of transient errors 120 seconds.
Transaction API can have a simple way to configure the retry policy. For example
// TransactionOptions represents options that can be used to configure a transaction. type TransactionOptions struct { ... // Number of max retries will be performed in case of TransactionTransientError, If 0, the number of retries is unknown and depends on timeout. MaxRetries int }