[ 
https://issues.apache.org/jira/browse/HIVE-10970?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14581461#comment-14581461
 ] 

Yongzhi Chen commented on HIVE-10970:
-------------------------------------

[~vgumashta], there are perhaps some issues related to thread switch sessions, 
following is the code in SessionState.java:
{noformat}
  /**
   * set current session to existing session object if a thread is running
   * multiple sessions - it must call this method with the new session object
   * when switching from one session to another.
   */
  public static SessionState start(SessionState startSs) {
    setCurrentSessionState(startSs);
  .....
{noformat}

This setCurrentSessionState method will end up calling :
{noformat}
    private void attach(HiveConf conf) {
      this.conf = conf;
      ClassLoader classLoader = conf.getClassLoader();
      if (classLoader != null) {
        Thread.currentThread().setContextClassLoader(classLoader);
      }
    }
{noformat}
I wonder if (classLoader == null), what the thread session should be? It looks 
not right just use previous session's, should it get some ini classloader for 
the new session?

> Revert HIVE-10453: HS2 leaking open file descriptors when using UDFs
> --------------------------------------------------------------------
>
>                 Key: HIVE-10970
>                 URL: https://issues.apache.org/jira/browse/HIVE-10970
>             Project: Hive
>          Issue Type: Bug
>            Reporter: Vaibhav Gumashta
>            Assignee: Vaibhav Gumashta
>




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

Reply via email to