@@ -63,16 +63,26 @@ Clusters that began with MongoDB 4.2 or older and were since
6363upgraded may include unique indexes that are not properly formatted.
6464
6565To 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
7787Request
7888-------
0 commit comments