Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
1.11.0
Description
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.
Attachments
Issue Links
- is related to
-
FLINK-16246 Exclude "SdkMBeanRegistrySupport" from dynamically loaded AWS connectors
- Closed
- relates to
-
FLINK-19259 Use classloader release hooks with Kinesis producer to avoid metaspace leak
- Closed
- links to