[ZEPPELIN-2414] Memory leak under scoped mode of SparkInterpreter caused by inapproprately setting Thread.contextClassLoader#2271
Conversation
|
Thanks @hammertank for the contribution. What do you think wrap interpreter using ClassLoaderInterpreter instead of modifying individual interpreter? Interpreter is being instantiated from RemoteInterpreterServer, so this is place where ClassLoaderInterpreter can wrap Interpreter. Like Interpreter factory does |
87094a4 to
6734abb
Compare
|
@Leemoonsoo Changed the code as you suggested. But I find it difficult to write a testcase to validate the modification. |
|
#2262 has been merged. so now, could you try include commit only related to this contributions? |
|
@Leemoonsoo re-commit as required. Please review again. |
|
You can close/reopen the issue to trigger Jenkins |
|
Found "ClassNotFoundException" after applying this fix. This is caused by SparkContext using the first TranslatingClassLoader to deserialize TaskResult. |
What is this PR for?
Fix memory leak under scoped mode of SparkInterpreter which is caused by inapproprately setting Thread.contextClassLoader.
What type of PR is it?
Bug Fix
Todos
Rest Thread.contextClassLoader in Methods:
What is the Jira issue?
https://issues.apache.org/jira/browse/ZEPPELIN-2414
How should this be tested?
Questions: