[SERVER-21435] addshard5.js fails due to adding the same mongod to a sharded cluster with a different shard name Created: 12/Nov/15  Updated: 25/Jan/17  Resolved: 12/Nov/15

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 3.2.0-rc3

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

Issue Links:
Duplicate
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: Sharding D (12/11/15)
Participants:
Linked BF Score: 0

 Description   

logs
task

[js_test:addshard5] 2015-11-12T18:13:25.335+0000 assert: command failed: {
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 	"cause" : {
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 		"cause" : {
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 			"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 			"errmsg" : "remote client 10.97.144.222:37212 tried to initialize this host as shard shard0001, but shard name was previously initialized as shard0002",
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 			"code" : 23
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 		},
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 		"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.335+0000 		"errmsg" : "moveChunk failed to engage TO-shard in the data transfer:  :: caused by :: remote client 10.97.144.222:37212 tried to initialize this host as shard shard0001, but shard name was previously initialized as shard0002",
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 		"code" : 23
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 	},
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 	"code" : 23,
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 	"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 	"errmsg" : "move failed"
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 } : undefined
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 doassert@src/mongo/shell/assert.js:13:14
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 assert.commandWorked@src/mongo/shell/assert.js:266:5
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 @jstests/sharding/addshard5.js:54:1
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 @jstests/sharding/addshard5.js:4:2
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 
[js_test:addshard5] 2015-11-12T18:13:25.336+0000 2015-11-12T18:13:25.335+0000 E QUERY    [thread1] Error: command failed: {
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 	"cause" : {
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 		"cause" : {
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 			"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 			"errmsg" : "remote client 10.97.144.222:37212 tried to initialize this host as shard shard0001, but shard name was previously initialized as shard0002",
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 			"code" : 23
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 		},
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 		"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 		"errmsg" : "moveChunk failed to engage TO-shard in the data transfer:  :: caused by :: remote client 10.97.144.222:37212 tried to initialize this host as shard shard0001, but shard name was previously initialized as shard0002",
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 		"code" : 23
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 	},
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 	"code" : 23,
[js_test:addshard5] 2015-11-12T18:13:25.337+0000 	"ok" : 0,
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 	"errmsg" : "move failed"
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 } : undefined :
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 doassert@src/mongo/shell/assert.js:13:14
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 assert.commandWorked@src/mongo/shell/assert.js:266:5
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 @jstests/sharding/addshard5.js:54:1
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 @jstests/sharding/addshard5.js:4:2
[js_test:addshard5] 2015-11-12T18:13:25.338+0000 



 Comments   
Comment by Githook User [ 12/Nov/15 ]

Author:

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

Message: SERVER-21435 Use a new shard instead of re-using an existing one in addshard5.js test
Branch: master
https://github.com/mongodb/mongo/commit/1b8a8957dc7adc2bba893a6d7953e5256849dca6

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