[SERVER-35488] ReplSetTest.waitForState() should ensure node has finished closing connections Created: 07/Jun/18  Updated: 29/Oct/23  Resolved: 18/Jun/18

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.0.1, 4.1.1

Type: Bug Priority: Major - P3
Reporter: Tess Avitabile (Inactive) Assignee: Tess Avitabile (Inactive)
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.0
Sprint: Repl 2018-06-18, Repl 2018-07-02
Participants:
Linked BF Score: 0

 Description   

ReplSetTest.waitForState() can be used to wait for a node to step down. However, nodes close external connections at stepdown, so queries run on the node immediately after waitForState() returns can experience a network error. We should ensure that the node has finished closing its external connections before returning. This can be done by running a query on the node, since this will take a global intent lock, which will block until the node has finished closing external connections.



 Comments   
Comment by Githook User [ 03/Jul/18 ]

Author:

{'username': 'tessavitabile', 'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com'}

Message: SERVER-35488 ReplSetTest.waitForState() should ensure node has finished closing connections

(cherry picked from commit b1dc7108c14d3103c4650db4584515408a4dd0c4)
Branch: v4.0
https://github.com/mongodb/mongo/commit/fcdf6ffa7d9ab542480a260c1cd405abb7ecc3a4

Comment by Githook User [ 18/Jun/18 ]

Author:

{'username': 'tessavitabile', 'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com'}

Message: SERVER-35488 ReplSetTest.waitForState() should ensure node has finished closing connections
Branch: master
https://github.com/mongodb/mongo/commit/b1dc7108c14d3103c4650db4584515408a4dd0c4

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