Skip to content

Commit 018f27d

Browse files
committed
DOCS-11896: 4.2 reindex restriction on mongos
1 parent 548748d commit 018f27d

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

source/reference/command/reIndex.txt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,15 @@ reIndex
2323

2424
- Avoid running :dbcommand:`reIndex` for a replica set.
2525

26-
- Do not run :dbcommand:`reIndex` for a sharded cluster.
26+
- Do not run :dbcommand:`reIndex` against a collection in a
27+
sharded cluster.
28+
29+
.. versionchanged:: 4.2
30+
31+
MongoDB disallows :dbcommand:`reIndex` to be run on a
32+
:binary:`~bin.mongos`, implementing a stronger restriction
33+
against running :dbcommand:`reIndex` for a collection in a
34+
sharded cluster.
2735

2836
Use the following syntax:
2937

source/reference/method/db.collection.reIndex.txt

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ db.collection.reIndex()
2828
- Do not run :method:`db.collection.reIndex()` against a
2929
collection in a sharded cluster.
3030

31+
.. versionchanged:: 4.2
32+
33+
MongoDB disallows :method:`db.collection.reIndex()` to be
34+
run on a :binary:`~bin.mongos`, implementing a stronger
35+
restriction against running
36+
:method:`db.collection.reIndex()` for a collection in a
37+
sharded cluster.
3138

3239
Behavior
3340
--------

source/release-notes/4.2-compatibility.txt

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,15 @@ As alternatives:
133133
:doc:`/tutorial/recover-data-following-unexpected-shutdown` for
134134
details.
135135

136+
General Changes
137+
---------------
138+
139+
- MongoDB implements a stronger restriction on running
140+
:dbcommand:`reIndex` command and :method:`db.collection.reIndex()`
141+
shell helper against a collection in a sharded cluster by disallowing
142+
:dbcommand:`reIndex` and :method:`db.collection.reIndex()` on a
143+
:binary:`~bin.mongos`.
144+
136145
.. _4.2-compatibility-enabled:
137146

138147
4.2 Feature Compatibilitity

0 commit comments

Comments
 (0)