Skip to content

Commit 8f48bf7

Browse files
authored
DOCSP-44627: Add retry information (#132)
1 parent cb8a477 commit 8f48bf7

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

source/fundamentals/transactions.txt

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,9 +94,13 @@ describes these methods:
9494
transaction was committed or ended.
9595

9696
* - ``and_run()``
97-
- | Runs the given callback, then commits or ends the transaction. When you
98-
use this method to perform a transaction, the driver automatically
99-
handles any errors, so you can choose to omit error handling code.
97+
- | Runs the given callback, then commits or ends the transaction. The
98+
driver retries callbacks and commits that raise an error with a
99+
``TRANSIENT_TRANSACTION_ERROR`` label. If they raise any
100+
other error, the driver ends the transaction and returns the error
101+
to the caller. When you use this method to perform a transaction,
102+
the driver automatically handles any errors, so you can choose to omit
103+
error handling code.
100104
|
101105
| Because the callback returns a future and can be run multiple
102106
times, the Rust language closure borrowing rules for captured

0 commit comments

Comments
 (0)