[SERVER-65663] Mongos cannot find shard primary after restart in catalog shard POC Created: 14/Apr/22  Updated: 16/May/22  Resolved: 16/May/22

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

Type: Task Priority: Major - P3
Reporter: Andrew Shuvalov (Inactive) Assignee: Andrew Witten (Inactive)
Resolution: Cannot Reproduce Votes: 0
Labels: sharding-nyc-subteam2, sharding-nyc-subteam2-catalog-poc
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Participants:
Story Points: 3

 Description   

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


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