diff options
author | Håkon Hallingstad <hakon@oath.com> | 2019-01-22 11:25:40 +0100 |
---|---|---|
committer | Håkon Hallingstad <hakon@oath.com> | 2019-01-22 11:25:40 +0100 |
commit | f1acf4178521fe77816c4d9c509e6531b6997470 (patch) | |
tree | 14231939e83d127e6bc378faf197bb62116e691a /clustercontroller-core | |
parent | 8372a883c5a5fa100f88fc9b80824359b5bb70cd (diff) |
Reduce log spam
Diffstat (limited to 'clustercontroller-core')
-rw-r--r-- | clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/database/DatabaseHandler.java | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/database/DatabaseHandler.java b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/database/DatabaseHandler.java index fcf5b58e62d..f2b1b523aba 100644 --- a/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/database/DatabaseHandler.java +++ b/clustercontroller-core/src/main/java/com/yahoo/vespa/clustercontroller/core/database/DatabaseHandler.java @@ -5,12 +5,11 @@ import com.yahoo.log.LogLevel; import com.yahoo.vdslib.state.Node; import com.yahoo.vdslib.state.NodeState; import com.yahoo.vdslib.state.State; -import com.yahoo.vespa.clustercontroller.core.AnnotatedClusterState; import com.yahoo.vespa.clustercontroller.core.ClusterStateBundle; +import com.yahoo.vespa.clustercontroller.core.ContentCluster; import com.yahoo.vespa.clustercontroller.core.FleetController; import com.yahoo.vespa.clustercontroller.core.NodeInfo; import com.yahoo.vespa.clustercontroller.core.Timer; -import com.yahoo.vespa.clustercontroller.core.ContentCluster; import com.yahoo.vespa.clustercontroller.core.listeners.NodeAddedOrRemovedListener; import com.yahoo.vespa.clustercontroller.core.listeners.NodeStateOrHostInfoChangeHandler; import org.apache.zookeeper.KeeperException; @@ -395,7 +394,9 @@ public class DatabaseHandler { Map<Node, NodeState> wantedStates = currentlyStored.wantedStates; if (wantedStates == null) { if (usingZooKeeper()) { - log.log(LogLevel.WARNING, "Fleetcontroller " + nodeIndex + ": Failed to retrieve wanted states from ZooKeeper. Assuming UP for all nodes."); + // We get here if the ZooKeeper client has lost the connection to ZooKeeper. + // TODO: Should instead fail the tick until connected!? + log.log(LogLevel.DEBUG, "Fleetcontroller " + nodeIndex + ": Failed to retrieve wanted states from ZooKeeper. Assuming UP for all nodes."); } wantedStates = new TreeMap<>(); } |