Commit 16fb6d5 1 parent 0a059cf commit 16fb6d5 Copy full SHA for 16fb6d5
File tree 1 file changed +2
-5
lines changed
1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -2046,11 +2046,8 @@ func (c *Client) updateNodeStatus() error {
2046
2046
return fmt .Errorf ("heartbeat response returned no valid servers" )
2047
2047
}
2048
2048
2049
- // Begin polling Consul if there is no Nomad leader. We could be
2050
- // heartbeating to a Nomad server that is in the minority of a
2051
- // partition of the Nomad server quorum, but this Nomad Agent still
2052
- // has connectivity to the existing majority of Nomad Servers, but
2053
- // only if it queries Consul.
2049
+ // If there's no Leader in the response we may be talking to a partitioned
2050
+ // server. Redo discovery to ensure our server list is up to date.
2054
2051
if resp .LeaderRPCAddr == "" {
2055
2052
c .triggerDiscovery ()
2056
2053
}
You can’t perform that action at this time.
0 commit comments