[SERVER-47046] Add tests that mongos receives topology change info "immediately" Created: 23/Mar/20  Updated: 29/Oct/23  Resolved: 17/Apr/20

Status: Closed
Project: Core Server
Component/s: Sharding
Affects Version/s: None
Fix Version/s: 4.4.0-rc4, 4.7.0

Type: Task Priority: Major - P3
Reporter: Janna Golden Assignee: Janna Golden
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Backwards Compatibility: Fully Compatible
Backport Requested:
v4.4
Sprint: Sharding 2020-04-06, Service arch 2020-04-20, Service arch 2020-05-04
Participants:

 Description   

Add the following test cases to check that mongos receives an isMaster reply "immediately" (or "quickly") after a RS topology change. In order to test this, we'll set the maxAwaitTimeMS to much higher than the default (5 mins). This will allow us to assert that mongos receives the isMaster replies because of a topology change rather than maxAwaitTimeMS.

1. Wait for mongos to discover RS primary, then call replSetStepUp on a secondary.
2. Wait for mongos to discover RS primary, then call replSetReconfig causing a secondary to step up. (done by repl_monitor_refresh.js)
3. Wait for mongos to discover RS primary, then kill the primary causing a secondary to step up.
4. Wait for mongos to discover RS primary, then terminate the primary causing a secondary to step up.
5. MongoS should detect a new member added to the set via replSetReconfig. (done in mongos_no_replica_set_refresh.js)
6. MongoS should detect a member was removed from the set via replSetReconfig. (done in repl_monitor_refresh.js and mongos_no_replica_set_refresh.js)
7. MongoS should detect a change in member tags via replSetReconfig (with no step down).



 Comments   
Comment by Githook User [ 29/Apr/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-47046 Add tests that mongos receives topology change info immediately

(cherry picked from commit 02a81517543abd970408eab96ef3dd85e9b6a138)
Branch: v4.4
https://github.com/mongodb/mongo/commit/e7f36b8dc44175ef813702cc3f2ea1037b947907

Comment by Githook User [ 17/Apr/20 ]

Author:

{'name': 'jannaerin', 'email': 'golden.janna@gmail.com', 'username': 'jannaerin'}

Message: SERVER-47046 Add tests that mongos receives topology change info immediately
Branch: master
https://github.com/mongodb/mongo/commit/02a81517543abd970408eab96ef3dd85e9b6a138

Generated at Thu Feb 08 05:13:08 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.