Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 10 additions & 3 deletions source/core/retryable-writes.txt
Original file line number Diff line number Diff line change
Expand Up @@ -73,9 +73,16 @@ For more information on transactions, see :doc:`/core/transactions`.
Enabling Retryable Writes
-------------------------

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

MongoDB Drivers
To enable retryable writes in MongoDB drivers, add the
Expand Down