Skip to content

Commit 6fecebc

Browse files
authored
DOCSP-43406-write-blocking-limitation-clarification (#489) (#509)
* DOCSP-43406-write-blocking-limitation-clarification * DOCSP-43406 fixing ref' * DOCSP-43406 fixing ref * DOCSP-43406 fixing ref * DOCSP-43406 copy edits * DOCSP-43406 tech edit (cherry picked from commit cd47f51)
1 parent bed72b5 commit 6fecebc

File tree

2 files changed

+19
-3
lines changed

2 files changed

+19
-3
lines changed

source/about-mongosync.txt

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -124,6 +124,20 @@ Finalize Sync
124124
To finalize the sync between the source and destination clusters,
125125
call the :ref:`commit <c2c-api-commit>` endpoint.
126126

127+
.. note::
128+
129+
You must block writes to the source cluster before you begin the
130+
the commit process.
131+
132+
If you previously set ``enableUserWriteBlocking`` to ``true`` when
133+
you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
134+
automatically blocks writes on the source cluster when you use the
135+
``commit`` endpoint.
136+
137+
If you did not set ``enableUserWriteBlocking`` to ``true``, run
138+
:dbcommand:`setUserWriteBlockMode` on the source cluster to
139+
block writes.
140+
127141
The ``commit`` endpoint starts the :ref:`COMMITTING <c2c-state-committing>`
128142
state, which is when ``mongosync`` stops continuous sync between the source and
129143
destination clusters.

source/reference/limitations.txt

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,11 @@ General Limitations
3434
are properly configured.
3535
- Other clients must not write to the destination cluster while
3636
``mongosync`` is running.
37-
- If write blocking is disabled, the client must :ref:`prevent writes
38-
<c2c-api-start>` to the source cluster before starting the commit
39-
process.
37+
- If you want to start the :ref:`commit <c2c-api-commit>`
38+
process and you did not set ``enableUserWriteBlocking`` to ``true``
39+
when you used the :ref:`c2c-api-start` endpoint, you
40+
must :ref:`prevent writes <c2c-api-start>` to the source cluster
41+
before you start the commit process.
4042
- :ref:`system.* collections <metadata-system-collections>` aren't
4143
replicated.
4244
- Documents that have dollar (``$``) prefixed field names aren't

0 commit comments

Comments
 (0)