hive-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Kelpe (JIRA) <j...@apache.org>
Subject [jira] [Updated] (HIVE-12426) SessionState.get().getHiveOperation() is unreliable in HiveServer2
Date Mon, 16 Nov 2015 22:50:11 GMT

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

Mime
View raw message