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

Mongos cannot find shard primary after restart in catalog shard POC

    • 3

      Test:

      all_shard_and_config_hosts_brought_down_one_by_one.js
      

      Failure:

      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] uncaught exception: Error: write failed with error: {
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 	"nMatched" : 0,
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 	"nUpserted" : 0,
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 	"nModified" : 0,
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 	"writeError" : {
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 		"code" : 133,
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 		"errmsg" : "Write results unavailable from failing to target a host in the shard all_shard_and_config_hosts_brought_down_one_by_one-rs0 :: caused by :: Could not find host matching read preference { mode: \"primary\" } for set all_shard_and_config_hosts_brought_down_one_by_one-rs0"
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] 	}
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] } :
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] _getErrorWithCode@src/mongo/shell/utils.js:24:13
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] doassert@src/mongo/shell/assert.js:18:14
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] assert.writeOK@src/mongo/shell/assert.js:903:21
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] _assertCommandWorked@src/mongo/shell/assert.js:744:24
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] assert.commandWorked@src/mongo/shell/assert.js:851:16
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] @jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js:30:8
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] @jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js:84:2
      
      

            Assignee:
            andrew.witten@mongodb.com Andrew Witten (Inactive)
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: