summaryrefslogtreecommitdiffstats
path: root/container-search/src/main
diff options
context:
space:
mode:
authorHenning Baldersheim <balder@yahoo-inc.com>2019-01-02 13:55:56 +0100
committerHenning Baldersheim <balder@yahoo-inc.com>2019-01-02 13:55:56 +0100
commitc5102c89f197499f86e6a3519bc15f0329be7c6b (patch)
tree81879533c0e751c20c2f073722f012927bf8d55c /container-search/src/main
parent77f69efafd70cefeec471ebc8b8dd06643d24dfe (diff)
An unrecoverable config error should be thrown back and not silently logged.
Diffstat (limited to 'container-search/src/main')
-rw-r--r--container-search/src/main/java/com/yahoo/prelude/cluster/ClusterSearcher.java8
1 files changed, 3 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..fca0ddbae91 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
@@ -165,7 +165,7 @@ public class ClusterSearcher extends Searcher {
}
}
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 +192,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 +204,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);
}