[SERVER-20806] balance_repl.js needs to figure out what shard to move chunks to after it runs movePrimary Created: 07/Oct/15  Updated: 25/Jan/17  Resolved: 07/Oct/15

Status: Closed
Project: Core Server
Component/s: Sharding, Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.2.0-rc0

Type: Bug Priority: Major - P3
Reporter: Max Hirschhorn 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
Sprint: Sharding A (10/09/15)
Participants:

 Description   

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



 Comments   
Comment by Githook User [ 07/Oct/15 ]

Author:

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

Message: SERVER-20806 Calculate 'other' shard after running movePrimary, not before, in balance_repl.js
Branch: master
https://github.com/mongodb/mongo/commit/8c7455b8260da4ae9ced9285e18c7df8850bf36e

Comment by Max Hirschhorn [ 07/Oct/15 ]

Actually this test has failed multiple times in the same way on OS X with WiredTiger:

Comment by Max Hirschhorn [ 07/Oct/15 ]

Only happened once and it happened with RocksDB. Assigning to spencer for initial triage.

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