Author: hashutosh Date: Thu Jun 7 05:54:38 2012 New Revision: 1347402 URL: http://svn.apache.org/viewvc?rev=1347402&view=rev Log: HIVE-3057: metastore.HiveMetaStore should set the thread local raw store to null in shutdown() (Travis Crawford via Ashutosh Chauhan) Merged in from trunk
Modified: hive/branches/branch-0.9/ (props changed) hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java Propchange: hive/branches/branch-0.9/ ------------------------------------------------------------------------------ Merged /hive/trunk:r1344795 Modified: hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java URL: http://svn.apache.org/viewvc/hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java?rev=1347402&r1=1347401&r2=1347402&view=diff ============================================================================== --- hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java (original) +++ hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java Thu Jun 7 05:54:38 2012 @@ -449,7 +449,7 @@ public class HiveMetaStore extends Thrif RawStore ms = threadLocalMS.get(); if (ms != null) { ms.shutdown(); - ms = null; + threadLocalMS.remove(); } logInfo("Metastore shutdown complete."); }