[SERVER-22994] Do not attempt to shard the 'config' db in the implicitly-shard-collections override Created: 07/Mar/16  Updated: 19/Jul/16  Resolved: 30/Jun/16

Status: Closed
Project: Core Server
Component/s: Testing Infrastructure
Affects Version/s: None
Fix Version/s: 3.3.10

Type: Bug Priority: Minor - P4
Reporter: Kamran K. Assignee: Jonathan Abrahams
Resolution: Done Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Related
Backwards Compatibility: Fully Compatible
Operating System: ALL
Sprint: TIG 17 (07/15/16)
Participants:
Linked BF Score: 0

 Description   

The implicitly_shard_accessed_collections.js override should blacklist config namespaces to prevent command failures like this:

[js_test:server22767] 2016-03-05T06:23:06.143+0000 assert: command failed: { "ok" : 0, "errmsg" : "can't shard config database" } : enabling sharding on the 'config' db failed
[js_test:server22767] 2016-03-05T06:23:06.143+0000 _getErrorWithCode@src/mongo/shell/utils.js:23:13
[js_test:server22767] 2016-03-05T06:23:06.143+0000 doassert@src/mongo/shell/assert.js:13:14
[js_test:server22767] 2016-03-05T06:23:06.143+0000 assert.commandWorked@src/mongo/shell/assert.js:240:5
[js_test:server22767] 2016-03-05T06:23:06.144+0000 DB.prototype.getCollection@jstests/libs/override_methods/implicitly_shard_accessed_collections.js:44:13
[js_test:server22767] 2016-03-05T06:23:06.144+0000 sh.waitForBalancerOff@src/mongo/shell/utils_sh.js:218:17
[js_test:server22767] 2016-03-05T06:23:06.144+0000 sh.waitForBalancer@src/mongo/shell/utils_sh.js:268:9
[js_test:server22767] 2016-03-05T06:23:06.144+0000 ShardingTest/this.stopBalancer@src/mongo/shell/shardingtest.js:601:13
[js_test:server22767] 2016-03-05T06:23:06.144+0000 ShardingTest@src/mongo/shell/shardingtest.js:1321:13
[js_test:server22767] 2016-03-05T06:23:06.144+0000 @jstests/core/server22767.js:2:10



 Comments   
Comment by Githook User [ 30/Jun/16 ]

Author:

{u'username': u'hptabster', u'name': u'Jonathan Abrahams', u'email': u'jonathan@mongodb.com'}

Message: SERVER-22994 Do not attempt to shard the 'config' db in the implicitly-shard-collections override
Branch: master
https://github.com/mongodb/mongo/commit/cce13607bbd38814446e48d3433bbcf7acb26690

Generated at Thu Feb 08 04:02:02 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.