Details
-
Bug
-
Resolution: Done
-
Major - P3
-
None
-
None
-
None
-
None
Description
This is for:
- https://docs.mongodb.com/manual/reference/method/db.collection.reIndex/
- https://docs.mongodb.com/manual/reference/command/reIndex/
reIndex will rebuild indexes in the background if the index was originally specified with this option. However, reIndex will rebuild the _id index in the foreground, which takes the database’s write lock.
This is not true. Currently reIndex ignores the background flag on each index and builds in the foreground - until we support a background option for the reindex command (SERVER-787). So reIndex will block other operations until it has completed.