Skip to content

Commit

Permalink
PWX-7978: Set the node status after the listeners have started. (#931)
Browse files Browse the repository at this point in the history
Signed-off-by: Jose Rivera <[email protected]>
  • Loading branch information
jrivera-px authored Mar 14, 2019
1 parent 44d9a9d commit 261030e
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions cluster/manager/manager.go
Original file line number Diff line number Diff line change
Expand Up @@ -970,8 +970,6 @@ func (c *ClusterManager) waitForQuorum(exist bool) error {
}
return err
}
c.status = api.Status_STATUS_OK
c.selfNode.Status = api.Status_STATUS_OK
break
} else {
c.status = api.Status_STATUS_NOT_IN_QUORUM
Expand Down Expand Up @@ -1000,6 +998,10 @@ func (c *ClusterManager) waitForQuorum(exist bool) error {
}
}

// Update the status after the listeners are started to ensure all REST points are available.
c.status = api.Status_STATUS_OK
c.selfNode.Status = api.Status_STATUS_OK

return nil
}

Expand Down

0 comments on commit 261030e

Please sign in to comment.