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); } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore == null) { LOG.debug("Thread Local RawStore is null, for the thread: " + this.getName() + " and so removing entry from threadRawStoreMap."); threadRawStoreMap.remove(threadId); } else { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }
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); } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }
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); } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }
/** * Cache the ThreadLocal RawStore object. Called from the corresponding thread. */ public void cacheThreadLocalRawStore() { Long threadId = this.getId(); RawStore threadLocalRawStore = HiveMetaStore.HMSHandler.getRawStore(); if (threadLocalRawStore != null && !threadRawStoreMap.containsKey(threadId)) { LOG.debug("Adding RawStore: " + threadLocalRawStore + ", for the thread: " + this.getName() + " to threadRawStoreMap for future cleanup."); threadRawStoreMap.put(threadId, threadLocalRawStore); } } }