Uh oh!
There was an error while loading. Please reload this page.
[ZEPPELIN-2414] Memory leak under scoped mode of SparkInterpreter caused by inapproprately setting Thread.contextClassLoader - #2271
Conversation
Leemoonsoo
commented
Apr 23, 2017
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 |
@Leemoonsoo Changed the code as you suggested. But I find it difficult to write a testcase to validate the modification. |
Leemoonsoo
commented
May 2, 2017
#2262 has been merged. so now, could you try include commit only related to this contributions? |
hammertank
commented
May 4, 2017
@Leemoonsoo re-commit as required. Please review again. |
Leemoonsoo
commented
May 4, 2017
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: