[SERVER-11041] Index Diagnostic Shell Helper - diag.checkIndexes() Created: 04/Oct/13  Updated: 09/Apr/20

Status: Open
Project: Core Server
Component/s: Diagnostics, Replication, Sharding, Shell
Affects Version/s: None
Fix Version/s: features we're not sure of

Type: Improvement Priority: Minor - P4
Reporter: Adam Comerford Assignee: DO NOT USE - Backlog - Platform Team
Resolution: Unresolved Votes: 0
Labels: move-sa, neweng
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Duplicate
is duplicated by SERVER-29316 Command to verify Consistency of Inde... Closed
Related
is related to SERVER-13359 Diagnostics Shell Helper diag.checkFr... Closed
Backwards Compatibility: Fully Compatible
Participants:

 Description   

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.



 Comments   
Comment by Scott Hernandez (Inactive) [ 04/Oct/13 ]

The reason to do it on the server as a command is so it can be run by any client (think users client code); I think a shell version is a good start which we can always port to a command once we are sure of the needs and implementation.

Comment by Adam Comerford [ 04/Oct/13 ]

My thinking was a shell helper, unless there was a good reason to do it on the server that I am overlooking.

Comment by Scott Hernandez (Inactive) [ 04/Oct/13 ]

Do you expect this to be a command (executed on the server) or a shell helper (done by the client)? It sounds like the latter, since you filed it under shell.

Generated at Thu Feb 08 03:24:43 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.