private void closeCallbackExecutor() { try { ExecutorUtil.shutdownAndAwaitTermination(zkCallbackExecutor); } catch (Exception e) { SolrException.log(log, e); } try { ExecutorUtil.shutdownAndAwaitTermination(zkConnManagerCallbackExecutor); } catch (Exception e) { SolrException.log(log, e); } }
public void close() { this.closed = true; notifications.shutdown(); ExecutorUtil.shutdownAndAwaitTermination(collectionPropsNotifications); if (closeClient) { zkClient.close(); } }
private void closeCallbackExecutor() { try { ExecutorUtil.shutdownAndAwaitTermination(zkCallbackExecutor); } catch (Exception e) { SolrException.log(log, e); } }
public static void tryClose() { Set<Entry<Object,String>> entries = OBJECTS.entrySet(); if (entries.size() > 0) { for (Entry<Object,String> entry : entries) { if (entry.getKey() instanceof Closeable) { try { ((Closeable)entry.getKey()).close(); } catch (Throwable t) { log.error("", t); } } else if (entry.getKey() instanceof ExecutorService) { try { ExecutorUtil.shutdownAndAwaitTermination((ExecutorService)entry.getKey()); } catch (Throwable t) { log.error("", t); } } } } }
ExecutorUtil.shutdownAndAwaitTermination(executorLauncher); ExecutorUtil.shutdownAndAwaitTermination(executorCloser); try { if (!externalZkServer) {
return true; } finally { ExecutorUtil.shutdownAndAwaitTermination(executor); float secs = (System.nanoTime() - start) / (float)(1.0e9); LOG.info("Live merging of index shards into Solr cluster took " + secs + " secs");
return true; } finally { ExecutorUtil.shutdownAndAwaitTermination(executor); float secs = (System.nanoTime() - start) / (float)(1.0e9); LOG.info("Live merging of index shards into Solr cluster took " + secs + " secs");