-
Type: Bug
-
Resolution: Duplicate
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Query
-
ALL
-
(copied to CRM)
The AllowPartialResults cursor method (DBQuery.Option.partial) does not have the desired effect when a shard backed by a REPLICA SET becomes unavailable.
In first example below I have set up a sharded cluster where each shard is backed by a single MONGOD. AllowPartialResults works as expected - if I kill on MONGOD I get results back from the other MONGOD. In the second example below, I have set up exact same cluster except I have backed each shard with a [single mongod] replica set. AllowPartialResults now does not work, in the sense that if I kill the mongod that forms the replica set, the db.collection.find().allowPartialResults() fails reporting an error saying "could not find host matching read preference { mode: \"primary\", tags: [ {} ] } for set shard1".
- duplicates
-
SERVER-33597 Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets
- Closed