@Override public void shutdown() { rawStore.shutdown(); }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
public static RawStore getMSForConf(Configuration conf) throws MetaException { RawStore ms = threadLocalMS.get(); if (ms == null) { ms = newRawStoreForConf(conf); try { ms.verifySchema(); } catch (MetaException e) { ms.shutdown(); throw e; } threadLocalMS.set(ms); ms = threadLocalMS.get(); LOG.info("Created RawStore: " + ms + " from thread id: " + Thread.currentThread().getId()); } return ms; }
private static void cleanupRawStore() { try { RawStore rs = HMSHandler.getRawStore(); if (rs != null) { HMSHandler.logAndAudit("Cleaning up thread local RawStore..."); rs.shutdown(); } } finally { HMSHandler handler = HMSHandler.threadLocalHMSHandler.get(); if (handler != null) { handler.notifyMetaListenersOnShutDown(); } HMSHandler.threadLocalHMSHandler.remove(); HMSHandler.threadLocalConf.remove(); HMSHandler.threadLocalModifiedConfig.remove(); HMSHandler.removeRawStore(); HMSHandler.logAndAudit("Done cleaning up thread local RawStore"); } }
@Override public void shutdown() { rawStore.shutdown(); }
@Override public void shutdown() { logInfo("Shutting down the object store..."); RawStore ms = threadLocalMS.get(); if (ms != null) { ms.shutdown(); } System.exit(0); }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
private void cleanRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = threadRawStoreMap.get(threadId); if (threadLocalRawStore != null) { LOG.debug("RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " will be closed now."); threadLocalRawStore.shutdown(); threadRawStoreMap.remove(threadId); } }
@Override public void shutdown() { logInfo("Shutting down the object store..."); RawStore ms = threadLocalMS.get(); if (ms != null) { ms.shutdown(); threadLocalMS.remove(); } logInfo("Metastore shutdown complete."); }
@Override public void shutdown() { logInfo("Shutting down the object store..."); RawStore ms = threadLocalMS.get(); if (ms != null) { try { ms.shutdown(); } finally { threadLocalMS.remove(); } } logInfo("Metastore shutdown complete."); }
@Override public void shutdown() { logInfo("Shutting down the object store..."); RawStore ms = threadLocalMS.get(); if (ms != null) { try { ms.shutdown(); } finally { threadLocalMS.remove(); } } logInfo("Metastore shutdown complete."); }
private static void cleanupRawStore() { try { RawStore rs = HMSHandler.getRawStore(); if (rs != null) { HMSHandler.logInfo("Cleaning up thread local RawStore..."); rs.shutdown(); } } finally { HMSHandler handler = HMSHandler.threadLocalHMSHandler.get(); if (handler != null) { handler.notifyMetaListenersOnShutDown(); } HMSHandler.threadLocalHMSHandler.remove(); HMSHandler.threadLocalConf.remove(); HMSHandler.threadLocalModifiedConfig.remove(); HMSHandler.removeRawStore(); HMSHandler.logInfo("Done cleaning up thread local RawStore"); } }