-
Type: Bug
-
Resolution: Fixed
-
Priority: Major - P3
-
Affects Version/s: None
-
Component/s: Replication
-
None
-
Fully Compatible
-
ALL
-
v4.4, v4.2, v4.0
-
Repl 2020-07-27, Repl 2020-08-10
We call ReplicaSetAwareServiceRegistry::onStepUpComplete and ReplicationCoordinatorExternalState::onTransitionToPrimary before calling _topCoord->completeTransitionToPrimary, which can fail.
If it does fail, we don't seem to take any action to inform the external services we just told we were now primary that we actually no longer are.
To resolve this, we will allow nodes to complete drain mode, even if their action is set to kSteppingDown. This will let us invariant on the second check, instead of returning a Status.
- is related to
-
SERVER-31572 Update faulty invariant in TopologyCoordinatorImpl::completeTransitionToPrimary
- Closed