Skip to content

Commit c4885ad

Browse files
authored
DOCSP 31207 Clarify mongosync reverse documentation unique index limitation (#181) (#197)
* DOCSP-32107 adding steps on resyncing all nodes * DOCSP-32107 adding steps on resyncing all nodes * DOCSP-32107 adding steps on resyncing all nodes * DOCSP-32107 adding steps on resyncing all nodes * DOCSP-31207 changing last sentence * DOCSP-31207 changing last sentence * DOCSP-31207 copy edits * empty commit * DOCSP-31207 tech edits
1 parent 5a22956 commit c4885ad

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

source/reference/api/reverse.txt

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -63,16 +63,26 @@ Clusters that began with MongoDB 4.2 or older and were since
6363
upgraded may include unique indexes that are not properly formatted.
6464

6565
To correct indexes, you can :ref:`resync <resync-replica-member>` all nodes
66-
in the original source cluster. If you don't want to resync the cluster, you
67-
can use the :method:`db.collection.validate` method on each collection to
68-
determine whether it contains improperly formatted unique indexes.
66+
in the original source cluster. To resync all nodes:
6967

70-
.. code-block:: javascript
68+
.. procedure::
69+
:style: normal
7170

72-
db.<collection>.validate()
71+
.. step:: Resync all secondaries, one by one.
7372

74-
If the method returns a warning about the unique index, you must
75-
resync all of the nodes in the original source cluster before reversing sync.
73+
For a tutorial on resyncing nodes, see :ref:`Resync a Member of a
74+
Replica Set <resync-replica-member>`.
75+
76+
.. step:: Step down the primary node and step up one of the secondary nodes.
77+
78+
.. step:: Resync the old primary node from the new primary node.
79+
80+
Alternatively, to avoid resyncing, you can use the
81+
:method:`db.collection.validate` method with ``full = false`` on each
82+
collection with unique indexes on all nodes to determine whether each
83+
collection contains improperly formatted unique indexes. If
84+
:method:`db.collection.validate` does not return a warning about a
85+
unique index, you can skip resyncing.
7686

7787
Request
7888
-------

0 commit comments

Comments
 (0)