You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Till Rohrmann (Jira)" <ji...@apache.org> on 2020/05/07 10:07:00 UTC

[jira] [Created] (FLINK-17554) Add release hooks for user code class loader

Till Rohrmann created FLINK-17554:
-------------------------------------

             Summary: Add release hooks for user code class loader
                 Key: FLINK-17554
                 URL: https://issues.apache.org/jira/browse/FLINK-17554
             Project: Flink
          Issue Type: New Feature
          Components: Runtime / Coordination
    Affects Versions: 1.11.0
            Reporter: Till Rohrmann
            Assignee: Till Rohrmann
             Fix For: 1.11.0


Release hooks for the user code class loader which are run just before the user code class loader is released would allow clean up static references to classes of the user code class loader. This is important because these static references could prevent the user code classes from being garbage collected and eventually causing metaspace OOMs.

Hence I suggest to extend the {{RuntimeContext}} with an additional method {{registerUserCodeClassLoaderReleaseHook(Runnable releaseHook)}} which allows the user code to register a release hook for the user code class loader.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)