[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: |
|
||||||||||||||||
| 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: 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. |