Lets the remote node to proceed, instead of waiting in DOWN state because cluster is in STARTING state.

This commit is contained in:
Kuba Podgórski 2020-06-17 11:37:30 +02:00
parent 7f4142497e
commit 87306d3145

View file

@ -2036,7 +2036,9 @@ func (c *cluster) nodeJoin(node *Node) error {
if c.haveTopologyAgreement() {
return c.unprotectedSetStateAndBroadcast(ClusterStateNormal)
}
return nil
// This lets the remote node to proceed with opening its holder,
// instead of waiting in DOWN state because cluster is in STARTING state.
return c.sendTo(node, c.unprotectedStatus())
} else if err != nil {
return errors.Wrap(err, "checking if holder has data")
}