Details
Description
Invalid index options such as "safe" may have been created in the past, before the createIndexes command started validating options more strictly.
In MongoDB 5.0, the listIndexes command more strictly validates index options, and fails when an invalid option is encountered. At this point, the only option is to drop and recreate the index.
This feature request is for the validate command to remove these invalid options as it is validating an index. This would provide a much faster way than recreating the index when fixing an invalid index option.
Attachments
Issue Links
- is documented by
-
DOCS-14821 Investigate changes in SERVER-59805: Provide a way to check for and to remove invalid index catalog options
-
- Closed
-
- is related to
-
SERVER-65549 Fix invalid index options when upgrading to 7.0
-
- Closed
-
-
SERVER-65797 Remove invalid index specs in memory before parsing for listIndexes
-
- Closed
-
- related to
-
SERVER-64444 listIndexes fails on invalid pre-5.0 index spec after upgrade
-
- Closed
-