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

balance_repl.js needs to figure out what shard to move chunks to after it runs movePrimary

    • Fully Compatible
    • ALL
    • Sharding A (10/09/15)

      Task
      Logs

      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000 2015-10-07T05:07:22.905+0000 E QUERY    [thread1] Error: command {
      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000   "moveChunk" : "test.foo",
      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000   "find" : {
      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000     "_id" : 0
      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000   },
      [js_test:balance_repl] 2015-10-07T05:07:22.905+0000   "to" : "test-rs0",
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000   "_secondaryThrottle" : true,
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000   "writeConcern" : {
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000     "w" : 2
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000   },
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000   "_waitForDelete" : true
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000 } failed: { "ok" : 0, "errmsg" : "that chunk is already on that shard" } :
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
      [js_test:balance_repl] 2015-10-07T05:07:22.906+0000 ShardingTest.prototype.adminCommand@src/mongo/shell/shardingtest.js:645:11
      [js_test:balance_repl] 2015-10-07T05:07:22.907+0000 @jstests/noPassthroughWithMongod/balance_repl.js:33:12
      [js_test:balance_repl] 2015-10-07T05:07:22.907+0000
      [js_test:balance_repl] 2015-10-07T05:07:22.907+0000 failed to load: jstests/noPassthroughWithMongod/balance_repl.js
      

            Assignee:
            spencer@mongodb.com Spencer Brody (Inactive)
            Reporter:
            max.hirschhorn@mongodb.com Max Hirschhorn
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: