An unrecoverable config error should be thrown back and not silently logged.
@@ -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);
}
