summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/cluster/NodeMonitor.java4
1 files changed, 3 insertions, 1 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/cluster/NodeMonitor.java b/container-search/src/main/java/com/yahoo/prelude/cluster/NodeMonitor.java
index 298eda9b201..894b9ebd8ce 100644
--- a/container-search/src/main/java/com/yahoo/prelude/cluster/NodeMonitor.java
+++ b/container-search/src/main/java/com/yahoo/prelude/cluster/NodeMonitor.java
@@ -65,6 +65,7 @@ public class NodeMonitor {
*/
public void failed(ErrorMessage error) {
long respondedAt = System.currentTimeMillis();
+ statusIsKnown = true;
if (error.getCode() == NO_ANSWER_WHEN_PINGING_NODE.code) {
// Only count not being able to talk to backend at all
@@ -86,10 +87,11 @@ public class NodeMonitor {
*/
public void responded(boolean searchNodesOnline) {
succeededAt = System.currentTimeMillis();
+ statusIsKnown = true;
+
this.searchNodesOnline = searchNodesOnline;
if (! isWorking)
setWorking(true, "Responds correctly");
- statusIsKnown = true;
}
/** Changes the state of this node if required */