[SERVER-16635] make sharding/mongos_no_replica_set_refresh.js test agnostic to who is elected primary Created: 22/Dec/14  Updated: 15/Jan/15  Resolved: 24/Dec/14

Status: Closed
Project: Core Server
Component/s: Replication, Sharding
Affects Version/s: None
Fix Version/s: 2.8.0-rc5

Type: Bug Priority: Major - P3
Reporter: Ian Whalen (Inactive) Assignee: Spencer Brody (Inactive)
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Backwards Compatibility: Fully Compatible
Operating System: ALL
Participants:

 Description   

LOGS

TEST HISTORY

Especially seems to be failing on Debian 7.1

	
 m31102| 2014-12-21T18:20:41.530+0000 E REPL     [conn1] replSetReconfig got NodeNotFound No host described in new configuration 2 for replica set test-rs0 maps to this node while validating { _id: "test-rs0", version: 2, members: [ { _id: 0, host: "ip-10-146-234-156:31100", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 }, { _id: 1, host: "ip-10-146-234-156:31101", arbiterOnly: false, buildIndexes: true, hidden: false, priority: 1.0, tags: {}, slaveDelay: 0, votes: 1 } ], settings: { chainingAllowed: true, heartbeatTimeoutSecs: 10, getLastErrorModes: {}, getLastErrorDefaults: { w: 1, wtimeout: 0 } } }
assert: command failed: {
	"ok" : 0,
	"errmsg" : "No host described in new configuration 2 for replica set test-rs0 maps to this node",
	"code" : 103
} : undefined
Error: command failed: {
	"ok" : 0,
	"errmsg" : "No host described in new configuration 2 for replica set test-rs0 maps to this node",
	"code" : 103
} : undefined
    at Error (<anonymous>)
    at doassert (src/mongo/shell/assert.js:11:14)
    at Function.assert.commandWorked (src/mongo/shell/assert.js:254:5)
    at reconfig (jstests/replsets/rslib.js:109:16)
    at /data/mci/shell/src/jstests/sharding/mongos_no_replica_set_refresh.js:28:1
    at /data/mci/shell/src/jstests/sharding/mongos_no_replica_set_refresh.js:76:2
2014-12-21T18:20:41.533+0000 I QUERY    Error: command failed: {
	"ok" : 0,
	"errmsg" : "No host described in new configuration 2 for replica set test-rs0 maps to this node",
	"code" : 103
} : undefined
    at Error (<anonymous>)
    at doassert (src/mongo/shell/assert.js:11:14)
    at Function.assert.commandWorked (src/mongo/shell/assert.js:254:5)
    at reconfig (jstests/replsets/rslib.js:109:16)
    at /data/mci/shell/src/jstests/sharding/mongos_no_replica_set_refresh.js:28:1
    at /data/mci/shell/src/jstests/sharding/mongos_no_replica_set_refresh.js:76:2 at jstests/replsets/rslib.js:113
failed to load: /data/mci/shell/src/jstests/sharding/mongos_no_replica_set_refresh.js



 Comments   
Comment by Githook User [ 24/Dec/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-16635 Make sharding/mongos_no_replica_set_refresh.js agnostic to who is elected primary (take 2)
Branch: master
https://github.com/mongodb/mongo/commit/b0014456ddefaccf02016c1a89c514e865a099d6

Comment by Spencer Brody (Inactive) [ 23/Dec/14 ]

Happened again in a patch build: https://mci.10gen.com/task/mongodb_mongo_master_debian71_3f7874101df5c3868f40584a6ac408df1248c4be_14_12_23_19_06_49_sharding_debian71

Looks like even a force reconfig doesn't allow you to remove the current node from the config.

Comment by Githook User [ 22/Dec/14 ]

Author:

{u'username': u'stbrody', u'name': u'Spencer T Brody', u'email': u'spencer@mongodb.com'}

Message: SERVER-16635 Make sharding/mongos_no_replica_set_refresh.js agnostic to who is elected primary
Branch: master
https://github.com/mongodb/mongo/commit/fce93d8bb38fbc99b5bbd534572678d04706d5fd

Generated at Thu Feb 08 03:41:45 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.