[SERVER-44259] rollback_after_enabling_majority_reads.js test should wait for restarted node to be in SECONDARY state before running stepUp command Created: 25/Oct/19  Updated: 29/Oct/23  Resolved: 28/Oct/19

Status: Closed
Project: Core Server
Component/s: Replication
Affects Version/s: None
Fix Version/s: 4.3.1, 4.2.2

Type: Bug Priority: Major - P3
Reporter: Lingzhi Deng Assignee: Lingzhi Deng
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Issue Links:
Backports
Depends
Problem/Incident
causes SERVER-44643 Use awaitSecondaryNodes in rollback_a... Closed
Backwards Compatibility: Fully Compatible
Operating System: ALL
Backport Requested:
v4.2
Sprint: Repl 2019-11-04
Participants:
Linked BF Score: 0

 Description   

The rollback_after_enabling_majority_reads.js tries to stepUp a node after restarting it. But even after awaitNodesAgreeOnPrimary, the restarted node could still be in STARTUP2 state. Thus, the subsequent replSetStepUp could fail because "because member is not currently a secondary".



 Comments   
Comment by Githook User [ 28/Oct/19 ]

Author:

{'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com', 'name': 'Lingzhi Deng'}

Message: SERVER-44259: rollback_after_enabling_majority_reads.js test should wait for restarted node to be in SECONDARY state before running stepUp command

(cherry picked from commit dc35d37187c3629a0ff77548b21328624c09a9d9)
Branch: v4.2
https://github.com/mongodb/mongo/commit/4e6213ae16547d97af8a7b5f99e17e9d215c9bc2

Comment by Githook User [ 28/Oct/19 ]

Author:

{'username': 'ldennis', 'email': 'lingzhi.deng@mongodb.com', 'name': 'Lingzhi Deng'}

Message: SERVER-44259: rollback_after_enabling_majority_reads.js test should wait for restarted node to be in SECONDARY state before running stepUp command
Branch: master
https://github.com/mongodb/mongo/commit/dc35d37187c3629a0ff77548b21328624c09a9d9

Generated at Thu Feb 08 05:05:29 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.