@@ -91,7 +91,7 @@ public void add(NodeStatus node) {
9191 while (iterator .hasNext ()) {
9292 NodeStatus next = iterator .next ();
9393
94- // If the ID the same and the URI is the same, use the same
94+ // If the ID and the URI are the same, use the same
9595 // availability as the version we have now: we're just refreshing
9696 // an existing node.
9797 if (next .getNodeId ().equals (node .getNodeId ()) && next .getExternalUri ().equals (node .getExternalUri ())) {
@@ -106,7 +106,7 @@ public void add(NodeStatus node) {
106106 return ;
107107 }
108108
109- // If the URI is the same but NodeId is different then the Node has restarted
109+ // If the URI is the same but NodeId is different, then the Node has restarted
110110 if (!next .getNodeId ().equals (node .getNodeId ()) &&
111111 next .getExternalUri ().equals (node .getExternalUri ())) {
112112 LOG .info (String .format ("Re-adding node with id %s and URI %s." , node .getNodeId (), node .getExternalUri ()));
@@ -220,11 +220,11 @@ public void purgeDeadNodes() {
220220 Instant deadTime = lastTouched .plus (node .getHeartbeatPeriod ().multipliedBy (PURGE_TIMEOUT_MULTIPLIER ));
221221
222222 if (node .getAvailability () == UP && lostTime .isBefore (now )) {
223- LOG .info (String .format ("Switching node %s from UP to DOWN" , node .getNodeId ()));
223+ LOG .info (String .format ("Switching Node %s from UP to DOWN" , node .getExternalUri ()));
224224 replacements .put (node , rewrite (node , DOWN ));
225225 }
226226 if (node .getAvailability () == DOWN && deadTime .isBefore (now )) {
227- LOG .info (String .format ("Removing node %s that is DOWN for too long" , node .getNodeId ()));
227+ LOG .info (String .format ("Removing Node %s, DOWN for too long" , node .getExternalUri ()));
228228 toRemove .add (node );
229229 }
230230 }
0 commit comments