diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2018-11-15 16:17:16 +0100 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2018-11-15 16:17:16 +0100 |
commit | 787b7a115ad2fea0658601c3ebee6bcdb74f2550 (patch) | |
tree | 79ea97d29e6f3aea31fabf7f15c5b2f259e5c9b3 /container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java | |
parent | 8ece4a3e82807740081aa64ed620a4fc879696bb (diff) |
When pooling ClusterMonitors and SearchClusters you will add a cluster every time there is a reconfig.
As nothing will purge them, you both keep stuff alive forever and end up with more clusters that you have.
Hence the magic for not removing vipstatus when there are multiple clusters kick in preventing nodes being taken OOR.
Now it is using the ComponentId for identifying a cluster.
Diffstat (limited to 'container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java')
-rw-r--r-- | container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java b/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java index e54f968f41d..4c1c1622140 100644 --- a/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java +++ b/container-core/src/test/java/com/yahoo/container/handler/VipStatusTestCase.java @@ -18,9 +18,9 @@ public class VipStatusTestCase { clustersStatus.setContainerHasClusters(true); VipStatus v = new VipStatus(clustersStatus); - Object cluster1 = new Object(); - Object cluster2 = new Object(); - Object cluster3 = new Object(); + String cluster1 = new String("a"); + String cluster2 = new String("b"); + String cluster3 = new String("c"); // initial state assertFalse(v.isInRotation()); |