You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@hive.apache.org by "André Kelpe (JIRA)" <ji...@apache.org> on 2015/11/16 23:25:11 UTC

[jira] [Created] (HIVE-12426) SessionState.get().getHiveOperation() is unreliable in HiveServer2

André Kelpe created HIVE-12426:
----------------------------------

             Summary: SessionState.get().getHiveOperation() is unreliable in HiveServer2
                 Key: HIVE-12426
                 URL: https://issues.apache.org/jira/browse/HIVE-12426
             Project: Hive
          Issue Type: Bug
          Components: HiveServer2
    Affects Versions: 1.2.1
            Reporter: André Kelpe
            Assignee: Vaibhav Gumashta


SessionState.get().getHiveOperation() is supposed to allow easy access to the current kind of operation. The information however is incorrect in the HiveServer2 case, since the setting of the value is happening in a different thread than the code that the actual user session is in. Since this is a ThreadLocal there is no way to retrieve the correct value, if it is set by a different thread.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)