You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flink.apache.org by "Flink Jira Bot (Jira)" <ji...@apache.org> on 2021/06/24 22:39:04 UTC

[jira] [Updated] (FLINK-19916) Hadoop3 ShutdownHookManager visit closed ClassLoader

     [ https://issues.apache.org/jira/browse/FLINK-19916?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Flink Jira Bot updated FLINK-19916:
-----------------------------------
    Labels: auto-deprioritized-major stale-major  (was: auto-deprioritized-major)

I am the [Flink Jira Bot|https://github.com/apache/flink-jira-bot/] and I help the community manage its development. I see this issues has been marked as Major but is unassigned and neither itself nor its Sub-Tasks have been updated for 30 days. I have gone ahead and added a "stale-major" to the issue". If this ticket is a Major, please either assign yourself or give an update. Afterwards, please remove the label or in 7 days the issue will be deprioritized.


> Hadoop3 ShutdownHookManager visit closed ClassLoader
> ----------------------------------------------------
>
>                 Key: FLINK-19916
>                 URL: https://issues.apache.org/jira/browse/FLINK-19916
>             Project: Flink
>          Issue Type: Bug
>          Components: Connectors / Hadoop Compatibility
>    Affects Versions: 1.12.2
>            Reporter: Jingsong Lee
>            Priority: Major
>              Labels: auto-deprioritized-major, stale-major
>
> {code:java}
> Exception in thread "Thread-10" java.lang.IllegalStateException: Trying to access closed classloader. Please check if you store classloaders directly or indirectly in static fields. If the stacktrace suggests that the leak occurs in a third party library and cannot be fixed immediately, you can disable this check with the configuration 'classloader.check-leaked-classloader'.
> 	at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.ensureInner(FlinkUserCodeClassLoaders.java:161)
> 	at org.apache.flink.runtime.execution.librarycache.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.getResource(FlinkUserCodeClassLoaders.java:179)
> 	at org.apache.hadoop.conf.Configuration.getResource(Configuration.java:2780)
> 	at org.apache.hadoop.conf.Configuration.getStreamReader(Configuration.java:3036)
> 	at org.apache.hadoop.conf.Configuration.loadResource(Configuration.java:2995)
> 	at org.apache.hadoop.conf.Configuration.loadResources(Configuration.java:2968)
> 	at org.apache.hadoop.conf.Configuration.getProps(Configuration.java:2848)
> 	at org.apache.hadoop.conf.Configuration.get(Configuration.java:1200)
> 	at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1812)
> 	at org.apache.hadoop.conf.Configuration.getTimeDuration(Configuration.java:1789)
> 	at org.apache.hadoop.util.ShutdownHookManager.getShutdownTimeout(ShutdownHookManager.java:183)
> 	at org.apache.hadoop.util.ShutdownHookManager.shutdownExecutor(ShutdownHookManager.java:145)
> 	at org.apache.hadoop.util.ShutdownHookManager.access$300(ShutdownHookManager.java:65)
> 	at org.apache.hadoop.util.ShutdownHookManager$1.run(ShutdownHookManager.java:102)
> {code}
> This is because Hadoop 3 starts asynchronous threads to execute some shutdown hooks.
>  These hooks are run after the job is executed, as a result, the classloader has been released, but in hooks, configuration still holds the released classloader, so it will fail to throw an exception in this asynchronous thread.
> Now it doesn't affect our function, it just prints the exception stack on the console.



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