-
Type: Task
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Sharding
-
Fully Compatible
-
v4.2, v4.0, v3.6
-
Sharding 2019-10-07
In both allow_partial_results.js and return_partial_shards_down.js, a shard is shut down, and then a find command is run with the flag allowPartialResults set to true. When the tests are run with the shard servers as replica sets and the shard rs is stopped, they fail on the find command with the error
Could not find host matching read preference { mode: \"primary\" }
for the replica set that was shut down. It looks like there is an exception that is caught here when the shards are started as standalones that prevents the error being thrown, but it's not caught when the shards are started as replica sets.
- is depended on by
-
SERVER-38894 Change tests to use replica set shards instead of standalone shards to allow chunk migrations to use replication-specific functionality
- Closed
- is duplicated by
-
SERVER-31511 AllowPartialResults not working when sharded cluster is backed by replica set
- Closed
- is related to
-
SERVER-32052 Update ShardingTest to default to starting shard servers as single-node replica sets rather than standalones
- Closed