[ https://issues.apache.org/jira/browse/HIVE-4171?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13629137#comment-13629137 ]
Prasad Mujumdar commented on HIVE-4171: --------------------------------------- [~thejas] my apologies for missing the ticke updates .. Its certainly a good idea to store the current db at a common place. Though I am bit skeptical of using HiveConf object for storing runtime states. This could for example, create a backdoor to {{use <db>}} by executing {{set hive.current.db = <db>}} which will bypass any authorization, audit hooks etc for {{use <db>}} Comments/Suggestions ? > Current database in metastore.Hive is not consistent with SessionState > ---------------------------------------------------------------------- > > Key: HIVE-4171 > URL: https://issues.apache.org/jira/browse/HIVE-4171 > Project: Hive > Issue Type: Bug > Components: CLI > Reporter: Navis > Assignee: Thejas M Nair > Labels: HiveServer2 > Attachments: HIVE-4171.3.patch, HIVE-4171.D9399.1.patch, > HIVE-4171.D9399.2.patch > > > metastore.Hive is thread local instance, which can have different status with > SessionState. Currently the only status in metastore.Hive is database name in > use. -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira