diff options
author | HÃ¥kon Hallingstad <hakon.hallingstad@gmail.com> | 2019-09-19 17:11:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-19 17:11:06 +0200 |
commit | d54428bc306698601461f03efeae88730a9bb41e (patch) | |
tree | 2c35bbe569f09f8e77c91948ca62d77d7602b6fb /container-search/src/main/java/com/yahoo/search | |
parent | 925ad2648e24ca0db15054beb7450f209712e404 (diff) |
Revert "Add test for in and out of vip and fix bug."
Diffstat (limited to 'container-search/src/main/java/com/yahoo/search')
-rw-r--r-- | container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java index 6f775e7218e..2bcac6e2ce4 100644 --- a/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java +++ b/container-search/src/main/java/com/yahoo/search/dispatch/searchcluster/SearchCluster.java @@ -239,7 +239,9 @@ public class SearchCluster implements NodeManager<Node> { else vipStatus.removeFromRotation(clusterId); } - else if (localCorpusDispatchTarget.isEmpty() && hasInformationAboutAllNodes()) { + else { + if ( ! hasInformationAboutAllNodes()) return; + if (hasWorkingNodes()) vipStatus.addToRotation(clusterId); else @@ -255,8 +257,8 @@ public class SearchCluster implements NodeManager<Node> { else vipStatus.removeFromRotation(clusterId); } - else if ( localCorpusDispatchTarget.isEmpty()) { - if (isInRotation && sufficientCoverage) + else { + if ( ! isInRotation && sufficientCoverage) vipStatus.addToRotation(clusterId); } } |