diff options
author | Jon Bratseth <bratseth@oath.com> | 2018-08-30 08:46:06 +0200 |
---|---|---|
committer | Jon Bratseth <bratseth@oath.com> | 2018-08-30 08:46:06 +0200 |
commit | 8d32f55ec5fb5066108356bba7d6565cfd9b547c (patch) | |
tree | 91135e8d4a49899b5bff8e4127445017f343f134 /container-search | |
parent | 114f42cb0ea790bc758b779f8c747184b68bfe2b (diff) |
Revert "Merge pull request #6726 from vespa-engine/revert-6719-bratseth/initially-down"
This reverts commit 05ea4c2b9952bceaf0e009053c2f51a09d15a957, reversing
changes made to 03efdabdc9f0e43fc2c362569ae455a7abc9a64b.
Diffstat (limited to 'container-search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java b/container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java index efce2fdac9c..a4d7a54a80e 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java @@ -182,7 +182,7 @@ public class SearchCluster implements NodeManager<SearchCluster.Node> { node.setWorking(true); if (usesDirectDispatchTo(node)) - vipStatus.addToRotation(this); + vipStatus.setInRotation(true); } /** Used by the cluster monitor to manage node status */ @@ -192,16 +192,16 @@ public class SearchCluster implements NodeManager<SearchCluster.Node> { // Take ourselves out if we usually dispatch only to our own host if (usesDirectDispatchTo(node)) - vipStatus.removeFromRotation(this); + vipStatus.setInRotation(false); } private void updateSufficientCoverage(Group group, boolean sufficientCoverage) { // update VIP status if we direct dispatch to this group and coverage status changed if (usesDirectDispatchTo(group) && sufficientCoverage != group.hasSufficientCoverage()) { if (sufficientCoverage) { - vipStatus.addToRotation(this); + vipStatus.setInRotation(true); } else { - vipStatus.removeFromRotation(this); + vipStatus.setInRotation(false); } } group.setHasSufficientCoverage(sufficientCoverage); |