[SERVER-2961] mongos may try to setShardVersion on a slave Created: 19/Apr/11 Updated: 12/Jul/16 Resolved: 19/Apr/11 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Sharding |
| Affects Version/s: | None |
| Fix Version/s: | 1.8.2, 1.9.0 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Eliot Horowitz (Inactive) | Assignee: | Eliot Horowitz (Inactive) |
| 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 |
|
after using a slave conn, it may try to call setShardVersion on a slave You'll see something like |
| Comments |
| Comment by Michael Conigliaro [ 05/May/11 ] |
|
I have created https://jira.mongodb.org/browse/SERVER-3049 |
| Comment by Eliot Horowitz (Inactive) [ 05/May/11 ] |
|
Its normal to get some after a failover. |
| Comment by Michael Conigliaro [ 04/May/11 ] |
|
I'm also getting lots of these in my app: com.mongodb.MongoException: setShardVersion failed host[mongodb05.example:27018] { errmsg: "not master", ok: 0.0 }Interestingly, they don't happen on every request. The app seems to fail with this exception about half the time. Restarting mongos seems to resolve this, though it's not a great workaround. Automatic failover is essentially broken for us at this point. |
| Comment by Michael Conigliaro [ 04/May/11 ] |
|
Still seeing occasional errors like this in my mongos.log after failover. This is on 1.8.2-rc0. Wed May 4 22:50:41 [conn3] Assertion: 10429:setShardVersion failed host[mongodb05.example.com:27018] { errmsg: "not master", ok: 0.0 }0x51fc59 0x69ca53 0x69c5e2 |
| Comment by auto [ 19/Apr/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: don't use ShardConnection for getMore |
| Comment by auto [ 19/Apr/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: test for |
| Comment by auto [ 19/Apr/11 ] |
|
Author: {u'login': u'erh', u'name': u'Eliot Horowitz', u'email': u'eliot@10gen.com'}Message: don't use ShardConnection for getMore |