Skip to content

Commit 55543d9

Browse files
committed
DOCSP-13402 add drop unique system index step to 4.2 downg instructions
1 parent ea19078 commit 55543d9

File tree

4 files changed

+46
-6
lines changed

4 files changed

+46
-6
lines changed

source/includes/extracts-4.2-downgrade-fcv.yaml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,25 @@ content: |
7777
});
7878
});
7979
---
80+
ref: 4.2-downgrade-fcv-system-unique-index
81+
content: |
82+
83+
In addition, if you have enabled :doc:`access control
84+
</tutorial/enable-authentication>`, you must also remove the system
85+
unique index ``user_1_db_1`` on the ``admin.system.users``
86+
collection.
87+
88+
If fCV has ever been set to ``"4.2"``, use the following command to
89+
drop the ``user_1_db_1`` system unique index:
90+
91+
.. code-block:: javascript
92+
93+
db.getSiblingDB("admin").getCollection("system.users").dropIndex("user_1_db_1")
94+
95+
The ``user_1_db_1`` index will automatically be rebuilt when starting
96+
the server with the 4.0 binary in the procedure below.
97+
98+
---
8099
ref: 4.2-downgrade-fcv-unique-index-access-control-sharded-cluster
81100
content: |
82101

source/release-notes/4.2-downgrade-replica-set.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -137,15 +137,22 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
137137
Script
138138
.. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script.rst
139139

140-
2d. Remove Wildcard Indexes
140+
2d. Remove ``user_1_db_1`` System Unique Index
141+
``````````````````````````````````````````````
142+
143+
.. container::
144+
145+
.. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
146+
147+
2e. Remove Wildcard Indexes
141148
````````````````````````````
142149

143150
.. container::
144151

145152
.. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
146153

147154

148-
2e. View Definitions/Collection Validation Definitions that Include 4.2 Operators
155+
2f. View Definitions/Collection Validation Definitions that Include 4.2 Operators
149156
`````````````````````````````````````````````````````````````````````````````````
150157

151158
.. container::

source/release-notes/4.2-downgrade-sharded-cluster.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -130,14 +130,21 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
130130
Script to run on shards
131131
.. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script-local-users.rst
132132

133-
2d. Remove Wildcard Indexes
133+
2d. Remove ``user_1_db_1`` System Unique Index
134+
``````````````````````````````````````````````
135+
136+
.. container::
137+
138+
.. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
139+
140+
2e. Remove Wildcard Indexes
134141
```````````````````````````
135142

136143
.. container::
137144

138145
.. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
139146

140-
2e. View Definitions/Collection Validation Definitions that Include 4.2 Operators
147+
2f. View Definitions/Collection Validation Definitions that Include 4.2 Operators
141148
`````````````````````````````````````````````````````````````````````````````````
142149

143150
.. container::

source/release-notes/4.2-downgrade-standalone.txt

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,14 +100,21 @@ Remove all persisted 4.2 features that are :ref:`incompatible with 4.0
100100
Script
101101
.. include:: /includes/extracts/4.2-downgrade-fcv-unique-index-script.rst
102102

103-
2d. Remove Wildcard Indexes
103+
2d. Remove ``user_1_db_1`` System Unique Index
104+
``````````````````````````````````````````````
105+
106+
.. container::
107+
108+
.. include:: /includes/extracts/4.2-downgrade-fcv-system-unique-index.rst
109+
110+
2e. Remove Wildcard Indexes
104111
```````````````````````````
105112

106113
.. container::
107114

108115
.. include:: /includes/extracts/4.2-downgrade-fcv-wildcard-index.rst
109116

110-
2e. View Definitions/Collection Validation Definitions that Include 4.2 Operators
117+
2f. View Definitions/Collection Validation Definitions that Include 4.2 Operators
111118
`````````````````````````````````````````````````````````````````````````````````
112119

113120
.. container::

0 commit comments

Comments
 (0)