[SERVER-38200] Fix ./jstests/replsets/initial_sync_oplog_hole.js to prevent using stale heartbeat info in the test. Created: 19/Nov/18 Updated: 29/Oct/23 Resolved: 30/Nov/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.11, 4.0.6, 4.1.6 |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Suganthi Mani | Assignee: | Suganthi Mani |
| 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, v3.6
|
||||||||
| Sprint: | Repl 2018-12-03, Repl 2018-12-17 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 14 | ||||||||
| Description |
|
_waitForIndicator function in ./src/mongo/shell/replsettest.js always executes the "replSetGetStatus" cmd on primary and gets the member node's state. If the primary is not holding up-to-date info about the replica set members, then replTest.waitForState can work incorrectly and lead to failures like in BF-11225. Fix is to use rslib's waitForState which verifies the node's state by making a call directly to that node in question. |
| Comments |
| Comment by Githook User [ 23/Jan/19 ] |
|
Author: {'username': 'smani87', 'email': 'suganthi.mani@mongodb.com', 'name': 'Suganthi Mani'}Message: (cherry picked from commit d9ac7e9ea34bb070239385225a3d002f9924a301) |
| Comment by Githook User [ 12/Jan/19 ] |
|
Author: {'username': 'smani87', 'email': 'suganthi.mani@mongodb.com', 'name': 'Suganthi Mani'}Message: (cherry picked from commit d9ac7e9ea34bb070239385225a3d002f9924a301) |
| Comment by Githook User [ 30/Nov/18 ] |
|
Author: {'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}Message: |