-
Type: Improvement
-
Resolution: Won't Fix
-
Priority: Major - P3
-
None
-
Affects Version/s: None
-
Component/s: Testing Infrastructure
-
None
-
TIG 2017-10-23, TIG 2017-11-13
Right now it seems like the stepdown thread's main loop doesn't wait for a new primary to be elected before sending another replSetStepDown command. This means that it's possible to send a replSetStepDown command to a server that's not a primary, and thus to receive a NotMaster error. Here's an example of a patch build where this happens (search for "not primary"):
I think the StepDownThread should deal with these NotMaster errors and ignore them, just as it does with "connection failure" errors.
Another solution would be for the thread to wait until a primary is elected before stepping a node down.
- is depended on by
-
SERVER-30979 Run the fuzzer with CSRS primary stepdowns
- Closed
- is duplicated by
-
SERVER-31532 Change error message to start with "not master" rather than "not primary"
- Closed