[SERVER-15297] Improve log message for case when can't find shard to move chunk to Created: 17/Sep/14 Updated: 04/Apr/23 Resolved: 04/Apr/23 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Logging |
| Affects Version/s: | None |
| Fix Version/s: | None |
| Type: | Improvement | Priority: | Trivial - P5 |
| Reporter: | Valeri Karpov | Assignee: | [DO NOT USE] Backlog - Sharding EMEA |
| Resolution: | Done | Votes: | 0 |
| Labels: | RachitaD | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Assigned Teams: |
Sharding EMEA
|
| Participants: |
| Description |
|
Right now just logs "no where to put it |
| Comments |
| Comment by Gianfranco Palumbo [ 27/Apr/15 ] | ||||
|
The warning now in master is as follows, is that ok?:
https://github.com/mongodb/mongo/blob/master/src/mongo/s/balancer_policy.cpp#L399-L402 | ||||
| Comment by Scott Hernandez (Inactive) [ 18/Sep/14 ] | ||||
|
The pull request is an improvement in some respects but it looks like all the messages in the tag section could do with a bit of work. Removing the unconditional one above your change and combining with the actual outcome messages would be my suggestion. We really don't need multiple log lines as we have now, nor would printing the chunk information across both lines be useful. Currently we log not just "no where to put it..." but information about the chunk and that it isn't on the correctly tagged shard:
|