[SERVER-33597] Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets Created: 01/Mar/18  Updated: 29/Oct/23  Resolved: 01/Oct/19

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.3, 4.0.15, 3.6.18

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Cheahuychou Mao
Resolution: Fixed Votes: 1
Labels: ShardsAsReplicaSetsInTest, open_todo_in_code
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
is depended on by SERVER-38894 Change tests to use replica set shard... Closed
Duplicate
is duplicated by SERVER-31511 AllowPartialResults not working when ... Closed
Related
is related to SERVER-32052 Update ShardingTest to default to sta... Closed
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.2, v4.0, v3.6
Sprint: Sharding 2019-10-07
Participants:

 Description   

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.



 Comments   
Comment by Githook User [ 09/Feb/20 ]

Author:

{'username': 'cheahuychou', 'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com'}

Message: SERVER-33597 Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets

(cherry picked from commit e6bbc9d860d126978ecda8707872cfdcc6b57fa8)
Branch: v3.6
https://github.com/mongodb/mongo/commit/7838ec6d5e17b19fc409660fd4ed4ec1f9395509

Comment by Githook User [ 20/Dec/19 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-33597 Fix error message in allow_partial_results.js
Branch: v4.0
https://github.com/mongodb/mongo/commit/0d0c2234a1345be7c80f1f3550b900d87574eb97

Comment by Githook User [ 20/Dec/19 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-33597 Fix comments in allow_partial_results.js
Branch: v4.2
https://github.com/mongodb/mongo/commit/002ab710e465641cc9bade02fe00d15301707757

Comment by Githook User [ 20/Dec/19 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-33597 Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets

(cherry picked from commit e6bbc9d860d126978ecda8707872cfdcc6b57fa8)
Branch: v4.0
https://github.com/mongodb/mongo/commit/02e5823026f2d01fce35b729976209408c067d58

Comment by Githook User [ 19/Dec/19 ]

Author:

{'name': 'Cheahuychou Mao', 'email': 'cheahuychou.mao@mongodb.com', 'username': 'cheahuychou'}

Message: SERVER-33597 Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets

(cherry picked from commit e6bbc9d860d126978ecda8707872cfdcc6b57fa8)
Branch: v4.2
https://github.com/mongodb/mongo/commit/aff2e09e657691ba4764c8a6cfb4630c364abdb0

Comment by Githook User [ 01/Oct/19 ]

Author:

{'username': 'cheahuychou', 'email': 'cheahuychou.mao@mongodb.com', 'name': 'Cheahuychou Mao'}

Message: SERVER-33597 Make allow_partial_results.js, return_partial_shards_down.js start shards as replica sets
Branch: master
https://github.com/mongodb/mongo/commit/e6bbc9d860d126978ecda8707872cfdcc6b57fa8

Generated at Thu Feb 08 04:33:57 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.