-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Original Downstream Change Summary
dropIndexes now returns error when trying to drop the last remaining shard key index. "*" also now means drop all indexes except for _id and key patterns that are compatible with the shard key pattern.
Description of Linked Ticket
This leaves you without an index on the shard key, which can have big performance implications, especially on migrations.
- documents
-
SERVER-6491 Prevent dropping shard key index when alternative index doesn't exist
- Closed
- is duplicated by
-
DOCS-15279 [BACKPORT] [v6.0] Prevent dropping shard key index when alternative index doesn't exist
- Closed