Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
Description
SessionState is created for each session in HS2. If we do any add jars, a class loader is set in the SessionState's conf object. This class loader should also be set in each thread that serves request of the same session.
Scenario (both requests are in the same session)-
// req 1 add jar foo.jar // Served by thread th1, this updates class loader and sets in SessionState.conf // req2 served by th2, such that th1 != th2 CREATE TEMPORARY FUNCTION foo_udf AS 'some class in foo.jar' // This can throw class not found error, because although // the new thread (th2) gets the same session state as th1, // the class loader is different (Thread.currentThread.getContextClassLoader()
Attachments
Attachments
Issue Links
- duplicates
-
HIVE-3969 Session state for hive server should be cleaned-up
- Resolved