From f970e3dc9d351be35dce241b347a4b2a09a05bd5 Mon Sep 17 00:00:00 2001 From: Alex Dadgar Date: Fri, 16 Feb 2018 17:49:31 -0800 Subject: [PATCH] Registering back to initializing Fix a bug in which if the node attributes/meta changed, we would re-register the node in status initializing. This would incorrectly trigger the client to log that it missed its heartbeat. It would change the status of the Node to initializing until the next heartbeat occured. --- client/client.go | 1 + 1 file changed, 1 insertion(+) diff --git a/client/client.go b/client/client.go index e27d2d62c..a53e89bbf 100644 --- a/client/client.go +++ b/client/client.go @@ -1131,6 +1131,7 @@ func (c *Client) registerNode() error { // Update the node status to ready after we register. c.configLock.Lock() node.Status = structs.NodeStatusReady + c.config.Node.Status = structs.NodeStatusReady c.configLock.Unlock() c.logger.Printf("[INFO] client: node registration complete")