-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Labels:None
Description
This ticket updated and finalized the aggregation pipeline we expect users to run to verify the indexes for a sharded collection are correct across all shards that was initially added by SERVER-44916. The pipeline is written out in full in this jstest: https://github.com/mongodb/mongo/blob/2eaf0ba58cca9e96276e8a07a3d46f0a7b83289d/jstests/sharding/index_stats_pipeline_detects_inconsistent_indexes.js#L20-L72
Description of Linked Ticket
The aggregation added in SERVER-44916 and used in SERVER-45389 to find inconsistent sharded indexes relies on $setUnion providing a consistent ordering, which is not supported. Instead, the pipeline will only consider fields known to be important, like name, key, and expireAfterSeconds untilĀ SERVER-29425 adds a supported way to sort an array.
Scope of changes
Impact to Other Docs
MVP (Work and Date)
Resources (Scope or Design Docs, Invision, etc.)
- documents
-
SERVER-46084 Don't use $setUnion in aggregation for finding inconsistent sharded indexes
- Closed
- is duplicated by
-
DOCS-13360 Investigate changes in SERVER-44916: Test and document a pipeline to find inconsistent indexes
- Closed