[
https://issues.apache.org/jira/browse/FLINK-8466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16337618#comment-16337618
]
ASF GitHub Bot commented on FLINK-8466:
---------------------------------------
Github user StephanEwen commented on the issue:
https://github.com/apache/flink/pull/5348
Thanks for the review.
Merging this to `master` and `release-1.4`.
> ErrorInfo needs to hold Exception as SerializedThrowable
> --------------------------------------------------------
>
> Key: FLINK-8466
> URL: https://issues.apache.org/jira/browse/FLINK-8466
> Project: Flink
> Issue Type: Bug
> Components: Local Runtime
> Affects Versions: 1.4.0
> Reporter: Jelmer Kuperus
> Assignee: Stephan Ewen
> Priority: Blocker
> Fix For: 1.5.0, 1.4.1
>
> Attachments: Screen Shot 2018-01-20 at 1.48.33 PM.png
>
>
> MemoryArchivist holding on to last thrown exception prevents the user code
> classloader from being garbage collected.
> MemoryArchivist holds on to any number of ArchivedExecutionGraph's. These
> ArchivedExecutionGraph instances contain a failureCause field of type
> ErrorInfo that wrap the exception in case one was thrown to terminate the job
> This exception class will more often than not have been loaded by a user code
> classloader, and as long as the MemoryArchivist holds on to this exception,
> the JVM won't be able to reclaim the resources held by this classloader
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)