-
Type: Improvement
-
Resolution: Unresolved
-
Priority: Minor - P4
-
Affects Version/s: None
-
Component/s: Diagnostics, Replication, Sharding, Shell
-
Fully Compatible
This helper function would compare the indexes (possibly on specific collections only) and appropriate members (defaulting to all shards and/or replicas) and output a report detailing any inconsistency (host with indexes missing – from primary – or extras on non-primary).
The implementation should produce machine readable and useable versions as well as a textual report.
Motivation:
The idea is to identify any members of a sharded cluster, or members of a replica set that have a different set of indexes (either missing, or additional) relative to other members - essentially an index "diff".
While this is quite simple to accomplish with a manual inspection when there only a few indexes present, it is quite difficult/laborious when dealing with hundreds of indexes on (potentially) dozens of hosts.
- is duplicated by
-
SERVER-29316 Command to verify Consistency of Indexes within a Cluster
- Closed
- is related to
-
SERVER-13359 Diagnostics Shell Helper diag.checkFragmentation()
- Closed