[SERVER-46181] Use waitForState in rslib.js for rollback_after_enabling_majority_reads.js Created: 14/Feb/20 Updated: 14/Feb/20 Resolved: 14/Feb/20 |
|
| Status: | Closed |
| Project: | Core Server |
| Component/s: | Replication |
| Affects Version/s: | 4.0.16 |
| Fix Version/s: | None |
| Type: | Bug | Priority: | Major - P3 |
| Reporter: | Xuerui Fa | Assignee: | Xuerui Fa |
| Resolution: | Won't Do | Votes: | 0 |
| Labels: | None | ||
| Remaining Estimate: | Not Specified | ||
| Time Spent: | Not Specified | ||
| Original Estimate: | Not Specified | ||
| Operating System: | ALL |
| Sprint: | Repl 2020-02-24 |
| Participants: |
| Description |
|
In rollback_after_enabling_majority_reads.js, we have a race condition where we execute the validate command before we wait for the node to be in the SECONDARY state. This is likely because we use the waitForState func in ReplSetTest, which waits for the state as indicated by the primary. Instead, we should use the waitForState command in rslib.js, which runs waitForMemberState on the node itself. |