[
https://issues.apache.org/jira/browse/HIVE-3057?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13283845#comment-13283845
]
Feng Peng commented on HIVE-3057:
---------------------------------
metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java in
branch 0.9:
(http://svn.apache.org/viewvc/hive/branches/branch-0.9/metastore/src/java/org/apache/hadoop/hive/metastore/HiveMetaStore.java?revision=1328569&view=markup)
{noformat}
446 @Override
447 public void shutdown() {
448 logInfo("Shutting down the object store...");
449 RawStore ms = threadLocalMS.get();
450 if (ms != null) {
451 ms.shutdown();
452 ms = null;
453 }
454 logInfo("Metastore shutdown complete.");
455 }
{noformat}
Line 452 should be
{noformat}
threadLocalMS.set(null);
{noformat}
> metastore.HiveMetaStore$HMSHandler should set the thread local raw store to
> null in shutdown()
> ----------------------------------------------------------------------------------------------
>
> Key: HIVE-3057
> URL: https://issues.apache.org/jira/browse/HIVE-3057
> Project: Hive
> Issue Type: Bug
> Components: Metastore
> Affects Versions: 0.8.1, 0.9.0
> Reporter: Feng Peng
>
> The shutdown() function of metastore.HiveMetaStore$HMSHandler does not set
> the thread local RawStore variable (in threadLocalMS) to null. Subsequent
> getMS() calls may get the wrong RawStore object.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira