summaryrefslogtreecommitdiffstats
path: root/container-search
diff options
context:
space:
mode:
authorJon Bratseth <bratseth@oath.com>2018-08-30 08:19:20 +0200
committerGitHub <noreply@github.com>2018-08-30 08:19:20 +0200
commit2433791fdc9d3ee79c67d18b1b285bd87e6d2bc7 (patch)
tree511231f13151ee7f3b65dac3d9cbfe7cd41a14d7 /container-search
parent03efdabdc9f0e43fc2c362569ae455a7abc9a64b (diff)
Revert "Be down initially"
Diffstat (limited to 'container-search')
-rw-r--r--container-search/src/main/java/com/yahoo/search/dispatch/SearchCluster.java8
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 a4d7a54a80e..efce2fdac9c 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.setInRotation(true);
+ vipStatus.addToRotation(this);
}
/** 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.setInRotation(false);
+ vipStatus.removeFromRotation(this);
}
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.setInRotation(true);
+ vipStatus.addToRotation(this);
} else {
- vipStatus.setInRotation(false);
+ vipStatus.removeFromRotation(this);
}
}
group.setHasSufficientCoverage(sufficientCoverage);