Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-21435

addshard5.js fails due to adding the same mongod to a sharded cluster with a different shard name

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.2.0-rc3
    • Affects Version/s: None
    • Component/s: Sharding
    • None
    • Fully Compatible
    • ALL
    • Sharding D (12/11/15)
    • 0

      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 
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            shraya.ramani Shraya Ramani
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: