[ https://issues.apache.org/jira/browse/HIVE-12043?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14944652#comment-14944652 ]
Siddharth Seth commented on HIVE-12043: --------------------------------------- This is linked to thread creation. The UGI used to create the thread remains active throughout the life of the thread. https://docs.oracle.com/javase/7/docs/api/javax/security/auth/Subject.html#doAs(javax.security.auth.Subject,%20java.security.PrivilegedExceptionAction) > UGI instances being used in IO elevator threads are incorrect > ------------------------------------------------------------- > > Key: HIVE-12043 > URL: https://issues.apache.org/jira/browse/HIVE-12043 > Project: Hive > Issue Type: Sub-task > Reporter: Siddharth Seth > Assignee: Siddharth Seth > > ... which leads to FileSystem closed exceptions. > I'm not sure yet if this is a result of the threadpool being used, and UGI > not working well with threadpools, or something else. > The UGI instance which was setup - at what looks to be thread creation time - > ends up being used for several different reads, ignoring the actual UGI > passed in. At some point this changes to a new incorrect UGI. > A simple fix is to propagate the correct UGI all the way to the reader, and > that fixes the FileSystem Closed exception. Figuring out the precise reason > would be good though. > Related to HIVE-9898. -- This message was sent by Atlassian JIRA (v6.3.4#6332)