Leverage listIndexes with its includeIndexBuilds optional flag to retrieve both ready and in-progress indexes. It looks like listIndexes results that are in-prog have a buildUUID flag to distinguish themselves.
Ready indexes should be built as is done in v4.0. In-progress indexes will be started asynchronously.
Read the relevant design documents sections for details / edge case handling.
- depends on
-
SERVER-37980 Add a function to the index builds interface to return the build UUID given a namespace and index name and hook it up for listIndexes to use
- Closed
- is related to
-
SERVER-28151 Authentication database should be synced first during an initial sync
- Closed
-
SERVER-46659 Make initial sync work with two phase index builds + commit quorum on
- Closed
- related to
-
SERVER-39087 move initial sync index creation logic into IndexBuildsCoordinator
- Closed
-
SERVER-41598 Elevate a mock storage engine implementation out of a particular unit test to make it generically usable
- Closed