tianshuang commented on PR #36741:
URL: https://github.com/apache/spark/pull/36741#issuecomment-1170231007

   > This seems super hacky. Is there any way to do better cleanup?
   
   Yes, the current fix ensures that we always manipulate `threadLocalMS` 
instances in `HMSHandler`(loaded by IsolatedClassLoader$$anon$1) to avoid 
memory leaks. I don't know if this is the optimal fix, but it does solve the 
problem of memory leaks. There are two `threadLocalMS` instances in the JVM 
complicates the problem. I haven't come up with a better fix, please let me 
know if you have new ideas.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to