[SERVER-36234] Fix ./jstests/replsets/initial_sync_drop_collection.js to prevent using stale heartbeat info in the test. Created: 21/Jul/18 Updated: 29/Oct/23 Resolved: 24/Jul/18 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | None |
| Fix Version/s: | 3.6.7, 4.0.2, 4.1.2 |
| 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-07-30 | ||||||||
| Participants: | |||||||||
| Linked BF Score: | 2 | ||||||||
| 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 in finishTest can work incorrectly and lead to failures like in BF-9682. Fix is to make the setupTest function to wait till secondary node's state reaches "STARTUP2" after its restart. |
| Comments |
| Comment by Githook User [ 06/Aug/18 ] |
|
Author: {'username': 'smani87', 'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com'}Message: (cherry picked from commit e6b804398d100cc131750f215d1c1beae1a13f87) |
| Comment by Githook User [ 24/Jul/18 ] |
|
Author: {'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}Message: (cherry picked from commit e6b804398d100cc131750f215d1c1beae1a13f87) |
| Comment by Githook User [ 24/Jul/18 ] |
|
Author: {'name': 'Suganthi Mani', 'email': 'suganthi.mani@mongodb.com', 'username': 'smani87'}Message: |