[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: |
|
||||||||
| 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: (cherry picked from commit b1dc7108c14d3103c4650db4584515408a4dd0c4) |
| Comment by Githook User [ 18/Jun/18 ] |
|
Author: {'username': 'tessavitabile', 'name': 'Tess Avitabile', 'email': 'tess.avitabile@mongodb.com'}Message: |