Merge pull request #468 from kuba--/fix-DEGRADED

Lets the remote node to proceed
This commit is contained in:
Kuba Podgórski 2020-06-25 17:05:30 +02:00 committed by GitHub
commit 47481432ef
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

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")
}