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

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

     [ https://issues.apache.org/jira/browse/HIVE-12426?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

André Kelpe updated HIVE-12426:
-------------------------------
    Description: 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 than 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.  (was: 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.)

> 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 than 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)