@@ -17,27 +17,30 @@ This page provides answers to some frequently asked questions we have
1717encountered. If you have additional questions please contact MongoDB
1818Support.
1919
20+ .. _c2c-faq-read-write-during-sync:
21+
2022Can I perform reads or writes to my destination cluster while ``mongosync`` is syncing?
2123---------------------------------------------------------------------------------------
2224
23- You can perform reads during synchronization at any time. However, the data
24- that you read is :term:`eventually consistent <eventual consistency>`. For
25- consistent reads, wait for the migration to commit. To learn more, see
26- :ref:`mongosync-considerations`.
25+ You can perform reads at any time during synchronization.
26+ However, ``mongosync`` combines and reorders writes from the source to destination during synchronization,
27+ and also temporarily modifies various collection characteristics.
28+ As a result, the destination is not guaranteed to match the source at any point in time when the sync is running.
29+ For consistent reads, wait for the migration to :ref:`c2c-api-commit`. To learn more, see :ref:`mongosync-considerations`.
30+
31+ Performing writes to your destination cluster during synchronization results in undefined behavior.
32+ To block writes on the destination cluster during sync, enable :ref:`write blocking <c2c-write-blocking>` when you :ref:`c2c-api-start` ``mongosync``.
2733
28- If you write to a synced namespace before issuing a :ref:`commit
29- <c2c-api-commit>` and while ``canWrite`` is ``false ``, the behavior is
30- undefined. To ensure that you don't write to any synced namespaces, enable
31- :ref:`write blocking < c2c-write-blocking>`.
34+ Upon commit, it is only safe to write to the destination cluster when ``canWrite`` is ``true``.
35+ To check the value of ``canWrite ``, run the :ref:`c2c-api-progress` endpoint.
36+
37+ To learn more about permissable reads and writes during synchronization, see :ref:`c2c-reads-and-writes`.
3238
3339.. note::
3440
3541 Index builds on the destination cluster are treated as writes
3642 while ``mongosync`` is syncing.
3743
38- To check the value of ``canWrite``, call the :ref:`progress <c2c-api-progress>`
39- API endpoint.
40-
4144Can ``mongosync`` run on its own hardware?
4245------------------------------------------
4346
0 commit comments