summaryrefslogtreecommitdiffstats
path: root/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
diff options
context:
space:
mode:
Diffstat (limited to 'container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java10
1 files changed, 5 insertions, 5 deletions
diff --git a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
index 04a7d9a5303..fd150f975c3 100644
--- a/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
+++ b/container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java
@@ -150,6 +150,7 @@ public class ClusterSearcher extends Searcher {
documentDbConfig);
addBackendSearcher(searcher);
} else {
+ System.out.println("Dispatchers: " + searchClusterConfig.dispatcher().size());
for (int dispatcherIndex = 0; dispatcherIndex < searchClusterConfig.dispatcher().size(); dispatcherIndex++) {
try {
if ( ! isRemote(searchClusterConfig.dispatcher(dispatcherIndex).host())) {
@@ -160,12 +161,13 @@ public class ClusterSearcher extends Searcher {
addBackendSearcher(searcher);
}
} catch (UnknownHostException e) {
+ e.printStackTrace();
throw new RuntimeException(e);
}
}
}
if ( server == null ) {
- log.log(Level.SEVERE, "ClusterSearcher should have a top level dispatch.");
+ throw new IllegalStateException("ClusterSearcher should have a top level dispatch.");
}
monitor.freeze();
monitor.startPingThread();
@@ -192,8 +194,7 @@ public class ClusterSearcher extends Searcher {
private static ClusterParams makeClusterParams(int searchclusterIndex,
LegacyEmulationConfig emulConfig,
int dispatchIndex) {
- return new ClusterParams("sc" + searchclusterIndex + ".num" + dispatchIndex,
- emulConfig);
+ return new ClusterParams("sc" + searchclusterIndex + ".num" + dispatchIndex, emulConfig);
}
private static FastSearcher searchDispatch(int searchclusterIndex,
@@ -205,8 +206,7 @@ public class ClusterSearcher extends Searcher {
Backend backend,
Dispatcher dispatcher,
int dispatcherIndex) {
- ClusterParams clusterParams = makeClusterParams(searchclusterIndex,
- emulConfig, dispatcherIndex);
+ ClusterParams clusterParams = makeClusterParams(searchclusterIndex, emulConfig, dispatcherIndex);
return new FastSearcher(backend, fs4ResourcePool, dispatcher, docSumParams, clusterParams, cacheParams,
documentdbInfoConfig);
}