[SERVER-4541] Create command to make a shard check that it only has documents it should have Created: 21/Dec/11 Updated: 06/Dec/22 Resolved: 29/Jan/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | New Feature | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | [DO NOT USE] Backlog - Sharding Team |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | neweng | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Sharding
|
| Participants: |
| Description |
|
We should create a command that can be run on a shard node where it will scan through every document on that shard, and make sure that it doesn't have any documents that the config servers don't think it should have. At the end it should return a list of ids for the documents that it has but shouldn't. This would be helpful for setting things right if we ever get into a bad state where sharding metadata doesn't match reality. |
| Comments |
| Comment by Spencer Brody (Inactive) [ 29/Jan/16 ] |
|
This has basically been done already, in the form of the cleanupOrphaned command |
| Comment by Eliot Horowitz (Inactive) [ 01/Feb/12 ] |
|
there is a script in snippets to do this, would be good built into shell |