diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-23 10:48:46 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2021-09-23 10:48:46 +0200 |
commit | 8c24cccb36f23336241dbb3fcaf055864b2fccf5 (patch) | |
tree | 13ee2c63556aa7d53ff3aabf56810004dfababfe | |
parent | f0ef3070dd80776f8edb6a20ed81988a6db9bd2e (diff) |
Description only matters if it is down....
-rw-r--r-- | vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java b/vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java index d23093b1a79..057dab2289c 100644 --- a/vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java +++ b/vdslib/src/main/java/com/yahoo/vdslib/state/ClusterState.java @@ -84,7 +84,7 @@ public class ClusterState implements Cloneable { private static boolean equalsWithDescription(NodeState a, NodeState b) { // TODO Why does not NodeState.equals consider description. - return a.equals(b) && a.getDescription().equals(b.getDescription()); + return a.equals(b) && ((a.getState() != State.DOWN) || a.getDescription().equals(b.getDescription())); } private void setNodeStateInternal(int index, NodeState ns) { |