Skip to content
This repository was archived by the owner on May 1, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
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
14 changes: 14 additions & 0 deletions source/about-mongosync.txt
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,20 @@ Finalize Sync
To finalize the sync between the source and destination clusters,
call the :ref:`commit <c2c-api-commit>` endpoint.

.. note::

You must block writes to the source cluster before you begin the
the commit process.

If you previously set ``enableUserWriteBlocking`` to ``true`` when
you used the :ref:`start <c2c-api-start>` endpoint, ``mongosync``
automatically blocks writes on the source cluster when you use the
``commit`` endpoint.

If you did not set ``enableUserWriteBlocking`` to ``true``, run
:dbcommand:`setUserWriteBlockMode` on the source cluster to
block writes.

The ``commit`` endpoint starts the :ref:`COMMITTING <c2c-state-committing>`
state, which is when ``mongosync`` stops continuous sync between the source and
destination clusters.
Expand Down
8 changes: 5 additions & 3 deletions source/reference/limitations.txt
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,11 @@ General Limitations
are properly configured.
- Other clients must not write to the destination cluster while
``mongosync`` is running.
- If write blocking is disabled, the client must :ref:`prevent writes
<c2c-api-start>` to the source cluster before starting the commit
process.
- If you want to start the :ref:`commit <c2c-api-commit>`
process and you did not set ``enableUserWriteBlocking`` to ``true``
when you used the :ref:`c2c-api-start` endpoint, you
must :ref:`prevent writes <c2c-api-start>` to the source cluster
before you start the commit process.
- :ref:`system.* collections <metadata-system-collections>` aren't
replicated.
- Documents that have dollar (``$``) prefixed field names aren't
Expand Down