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

"Could not find host matching read preference" error in catalog shard POC

    • Sharding NYC
    • Fully Compatible
    • Sharding 2022-07-25
    • 4

      [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:904:21
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] _assertCommandWorked@src/mongo/shell/assert.js:745:24
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] assert.commandWorked@src/mongo/shell/assert.js:852: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:86:2
      [js_test:all_shard_and_config_hosts_brought_down_one_by_one] failed to load: jstests/sharding/all_shard_and_config_hosts_brought_down_one_by_one.js
      
      

      Also failed at:

      jstests/sharding/allow_partial_results.js
      jstests/sharding/allow_partial_results_nshards.js
      
      

            Assignee:
            backlog-server-sharding-nyc [DO NOT USE] Backlog - Sharding NYC
            Reporter:
            andrew.shuvalov@mongodb.com Andrew Shuvalov (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: