dropIndexes should abort in-progress index builds. This should be done after SERVER-37763 makes it possible to abort an index build.
SERVER-37727 will enhance dropIndexes to receive an array of indexes as arguments. This task will only abort in-progress index builds if the user specifies all of the indexes that a single builder is building together. A createIndexes command can start multiple indexes building together on one builder and we currently only have the granularity to abort all or none of the indexes on a builder.
Lastly, dropIndexes will not write a dropIndexes oplog entry if aborting in-progress builds. Aborting the index will produce an abortIndexBuilds oplog entry, which suffices. This allows rollback via refetch to know that an index was fully built prior to a dropIndexes oplog entry.
- causes
-
CDRIVER-3655 Tests checking for "ns not found" must check for a substring
- Closed
-
PYTHON-2129 Use error code to check for NamespaceNotFound errors
- Closed
- duplicates
-
SERVER-32033 Allow dropIndex to succeed when index build is in progress
- Closed
- has to be done after
-
SERVER-37727 Enhance dropIndexes to accept multiple specific indexes to drop
- Closed
-
SERVER-37763 Make it possible to abort index builds
- Closed
- is depended on by
-
DRIVERS-1253 Make dropIndexes abort in-progress index builds
- Closed
-
SERVER-37637 Standalone mode nodes should ignore in-progress index builds on startup
- Closed
- is duplicated by
-
SERVER-33634 Allow dropDatabase (and dropCollection) to succeed when index build is in progress
- Closed
- is related to
-
SERVER-21307 Replicated DDL (catalog) operation during background index build blocks reads/writes
- Closed
- related to
-
SERVER-21307 Replicated DDL (catalog) operation during background index build blocks reads/writes
- Closed
-
SERVER-48271 createIndexes command in fsm_workloads/invalidated_cursors.js fails with NoMatchingDocument error
- Closed
-
SERVER-39976 Two-phase index builds on primaries should ignore interrupts
- Closed
-
SERVER-46012 Aborting index builders through the IndexBuildsCoordinator does not always abort the index builders
- Closed
-
SERVER-45988 add IndexBuildAborted to list of acceptable errors in fsm_workloads/create_index_background_unique.js
- Closed