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)

Reply via email to