[SERVER-26883] Division by zero crash at config server if no shards contain a tag Created: 02/Nov/16 Updated: 19/Nov/16 Resolved: 03/Nov/16 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 3.4.0-rc2 |
| Fix Version/s: | 3.4.0-rc3 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Timothy Olsen (Inactive) | Assignee: | Kaloian Manassiev |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Attachments: |
|
||||||||||||||||||||||||||||||||||||
| Issue Links: |
|
||||||||||||||||||||||||||||||||||||
| Backwards Compatibility: | Fully Compatible | ||||||||||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||||||||||
| Steps To Reproduce: | Set up a sharded cluster. Then follow the following shell session:
|
||||||||||||||||||||||||||||||||||||
| Sprint: | Sharding 2016-11-21 | ||||||||||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||||||||||
| Description |
|
It is possible to get into this situation if you first add the shard tag range manually to the config.tags collection. (The sh.addTagRange() helper will refuse to add the tag range if the tag does not currently map to any shards). Of course this is an instance of "don't do that. use the helper." I'd thought I'd file this anyway if you wanted to work on preventing the crash from occurring. Logs attached. |
| Comments |
| Comment by Githook User [ 03/Nov/16 ] |
|
Author: {u'username': u'kaloianm', u'name': u'Kaloian Manassiev', u'email': u'kaloian.manassiev@mongodb.com'}Message: |
| Comment by Kaloian Manassiev [ 02/Nov/16 ] |
|
This looks like a division by zero error when there are no shards matching a tag. Thank you for the report. |
| Comment by Timothy Olsen (Inactive) [ 02/Nov/16 ] |
|
non-SSL OS X |
| Comment by Kaloian Manassiev [ 02/Nov/16 ] |
|
tim.olsen - I am unable to reproduce this crash. Can you tell me exactly which variant of the RC2 build did you use so I can resolve the stack trace? |