[SERVER-5243] mongos will route getLastError command to the config server when last insert triggered a split Created: 07/Mar/12 Updated: 11/Jul/16 Resolved: 18/May/12 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | 2.0.3 |
| Fix Version/s: | 2.1.2 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Randolph Tan | Assignee: | Randolph Tan |
| Resolution: | Done | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Issue Links: |
|
||||||||||||||||||||||||||||
| Operating System: | ALL | ||||||||||||||||||||||||||||
| Participants: | |||||||||||||||||||||||||||||
| Description |
|
Steps to reproduce: 1. Setup a sharded cluster (to make this easier to reproduce, set chunk size to 1). Eventually (specifically, right when an auto-split occurred), the shards field for the getLastError result would contain the config server and will have a corresponding object that looks like:
Some of drivers treat a non-null err field as an error and would throw an exception, which is bad. |
| Comments |
| Comment by auto [ 18/May/12 ] |
|
Author: {u'login': u'', u'name': u'Randolph Tan', u'email': u'randolph@10gen.com'}Message: Added a guard to prevent callbacks for the ScopeDBConnection pool to add connections for getLastError. |