[SERVER-4088] Make error message that object doesn't have full shard key include the object fields Created: 17/Oct/11 Updated: 29/Feb/12 Resolved: 13/Dec/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Major - P3 |
| Reporter: | Spencer Brody (Inactive) | Assignee: | Spencer Brody (Inactive) |
| Resolution: | Duplicate | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||
| Participants: | |||||||||
| Description |
|
In the compare method of ShardKeyPattern in shardkey.cpp, there are 2 assertion messages (10198 and 10199) for when the mongos encounters an object without the shard key. That error message reports only that there are fields of the shard key missing, with no information about what fields were provided. The message should the field names that are present (perhaps at a higher logging verbosity). |