Skip to content

Commit f327d87

Browse files
authored
DOCSP-44528-cutover-failure-warnings (#485) (#502)
* DOCSP-44528-cutover-failure-warnings' * DOCSP-44528-cutover-failure-warnings' * DOCSP-44528 adding disaster warning * DOCSP-44528 adding disaster warning * DOCSP-44528 copy edit * DOCSP-44528 Maria comments (cherry picked from commit 6d0064c)
1 parent 65ffcb1 commit f327d87

File tree

3 files changed

+30
-11
lines changed

3 files changed

+30
-11
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
If the source cluster shuts down before ``mongosync`` can commit, such as in
2+
a disaster scenario, the destination cluster might not have a consistent
3+
snapshot of the source data. To learn more, see :ref:`c2c-behavior-consistency`.

source/reference/cutover-process.txt

Lines changed: 26 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,32 @@ You can finalize a migration and transfer your application
1616
workload from the source to the destination cluster using the
1717
:ref:`mongosync <c2c-mongosync>` cutover process.
1818

19-
``mongosync`` should remain active until it reaches the
20-
:ref:`COMMITTED <c2c-state-committed>` state. This allows ``mongosync`` to sync
21-
any additional writes that occur during the migration.
22-
2319
.. note::
2420

2521
Before you switch your application workload to the
2622
destination cluster, you should always verify a successful sync.
2723
For more information, see :ref:`c2c-verification`.
2824

25+
``mongosync`` should remain active until it reaches the
26+
:ref:`COMMITTED <c2c-state-committed>` state. This allows ``mongosync`` to sync
27+
any additional writes that occur during the migration.
28+
29+
.. warning::
30+
31+
If you do not properly cutover from your source to your
32+
destination, you may face the following issues:
33+
34+
- Inaccurate data on the destination cluster
35+
- Unrecoverable and undiagnosable ``mongosync`` errors
36+
- Reduced application availability, especially if there is
37+
application-side enforcement of document schema or other
38+
characteristics
39+
- Incomplete transactions on the destination cluster
40+
- Other unexpected cluster behavior
41+
42+
Use the following steps to safely finalize your cutover process and achieve
43+
expected ``mongosync`` behavior.
44+
2945
Steps
3046
-----
3147

@@ -103,11 +119,13 @@ Steps
103119
:language: json
104120
:copyable: false
105121

106-
.. note::
122+
After you submit a ``commit`` request, call the ``progress`` endpoint
123+
to ensure that the ``mongosync`` state is ``COMMITTING`` or
124+
``COMMITTED``.
125+
126+
.. warning::
107127

108-
After you submit a ``commit`` request, call the ``progress`` endpoint
109-
to ensure that the ``mongosync`` state is ``COMMITTING`` or
110-
``COMMITTED``.
128+
.. include:: /includes/cluster-shutdown-warning
111129

112130
.. step:: Wait until you can perform writes on the destination cluster.
113131

source/reference/mongosync/mongosync-behavior.txt

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -174,9 +174,7 @@ For any continuous synchronization use cases with ``mongosync``, ensure that
174174
``mongosync`` commits before cutting over from the source to the
175175
destination.
176176

177-
If the source cluster shuts down before ``mongosync`` can commit, such as in
178-
a disaster scenario, the destination cluster might not have a consistent
179-
snapshot of the source data. To learn more, see :ref:`c2c-behavior-consistency`.
177+
.. include:: /includes/cluster-shutdown-warning
180178

181179
.. note::
182180

0 commit comments

Comments
 (0)