Skip to content

Commit 29389a9

Browse files
committed
DOCS-14182 clarify retryable writes default
1 parent 15bc41d commit 29389a9

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

source/core/retryable-writes.txt

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -73,9 +73,16 @@ For more information on transactions, see :doc:`/core/transactions`.
7373
Enabling Retryable Writes
7474
-------------------------
7575

76-
MongoDB drivers do **not** enable retryable writes by default with the
77-
exception of :ref:`transaction commit and abort operations
78-
<transactions-retry>`.
76+
MongoDB 3.6 introduced support for :ref:`retryable-writes`, but most
77+
official MongoDB 3.6 and 4.0-compatible drivers disable this feature
78+
by default. For such drivers, retryable writes can be enabled per
79+
connection by including the :urioption:`retryWrites=true
80+
<retryWrites>` option in the :ref:`connection string <mongodb-uri>`
81+
for that connection (see below). Refer to the
82+
`MongoDB Driver Documentation
83+
<https://docs.mongodb.com/drivers/?tck=docs_server>`_ to determine
84+
the correct default state of :urioption:`retryWrites` for your
85+
specific driver and version.
7986

8087
MongoDB Drivers
8188
To enable retryable writes in MongoDB drivers, add the

0 commit comments

Comments
 (0)