@@ -338,6 +338,8 @@ labeled:
338
338
To handle :ref:`unknown-transaction-commit-result`,
339
339
applications should explicitly incorporate retry logic for the error.
340
340
341
+ .. _txn-core-api-retry:
342
+
341
343
Example
342
344
~~~~~~~
343
345
@@ -389,17 +391,18 @@ the transaction as a whole can be retried.
389
391
- The core transaction API does not incorporate retry logic
390
392
for ``"TransientTransactionError"``. To handle
391
393
``"TransientTransactionError"``, applications should explicitly
392
- incorporate retry logic for the error.
394
+ incorporate retry logic for the error. To view an example that incorporates
395
+ retry logic for transient errors, see :ref:`Core API Example
396
+ <txn-core-api-retry>`.
393
397
394
398
.. _unknown-transaction-commit-result:
395
399
396
400
``"UnknownTransactionCommitResult"``
397
401
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
398
402
399
- The commit operations are :doc:`retryable write operations
400
- </core/retryable-writes>`. If the commit operation encounters an error,
401
- MongoDB drivers retry the commit regardless of the value of
402
- :urioption:`retryWrites`.
403
+ Commit operations are :ref:`retryable write operations <retryable-writes>`. If
404
+ the commit operation encounters an error, MongoDB drivers retry the commit
405
+ regardless of the value of :urioption:`retryWrites`.
403
406
404
407
If the commit operation encounters an error labeled
405
408
``"UnknownTransactionCommitResult"``, the commit can be retried.
@@ -410,7 +413,9 @@ If the commit operation encounters an error labeled
410
413
- The core transaction API does not incorporate retry logic for
411
414
``"UnknownTransactionCommitResult"``. To handle
412
415
``"UnknownTransactionCommitResult"``, applications should explicitly
413
- incorporate retry logic for the error.
416
+ incorporate retry logic for the error. To view an example that incorporates
417
+ retry logic for unknown commit errors, see :ref:`Core API Example
418
+ <txn-core-api-retry>`.
414
419
415
420
416
421
Driver Version Errors
0 commit comments