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

Do not attempt to shard the 'config' db in the implicitly-shard-collections override

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 3.3.10
    • Affects Version/s: None
    • Component/s: Testing Infrastructure
    • None
    • Fully Compatible
    • ALL
    • TIG 17 (07/15/16)
    • 0
    • None
    • 3
    • None
    • None
    • None
    • None
    • None
    • None

      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
      

            Assignee:
            jonathan.abrahams Jonathan Abrahams (Inactive)
            Reporter:
            kamran.khan Kamran K. (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: