Martijn Visser created FLINK-41064:
--------------------------------------

             Summary: 'State TTL Heap backend end-to-end test' fails on a 
"Trying to access closed classloader" log4j error in the TaskManager .out files
                 Key: FLINK-41064
                 URL: https://issues.apache.org/jira/browse/FLINK-41064
             Project: Flink
          Issue Type: Bug
          Components: Runtime / Checkpointing
    Affects Versions: 2.2.2
         Environment: 
https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=80344&view=logs&j=fb37c667-81b7-5c22-dd91-846535e99a97
 (release-2.2, nightly 2026-10-21, e2e_2_cron_adaptive_scheduler)

{code}
The TTL verification logic failed. See *.out file for more information.
[FAIL] 'State TTL Heap backend end-to-end test' failed after 1 minutes and 5 
seconds! Test exited with exit code 1
{code}

The test fails when any .out file is non-empty. All three TaskManager .out 
files contain only this log4j error, written at 04:42:32.46, about 0.4 s after 
the job was cancelled:

{code}
2026-10-21T04:42:32.460222966Z AsyncOperations-thread-1 ERROR An exception 
occurred processing Appender MainAppender java.lang.IllegalStateException: 
Trying to access closed classloader. Please check if you store classloaders 
directly or indirectly in static fields. ...
        at 
org.apache.flink.util.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.ensureInner(FlinkUserCodeClassLoaders.java:189)
        at 
org.apache.flink.util.FlinkUserCodeClassLoaders$SafetyNetWrapperClassLoader.loadClass(FlinkUserCodeClassLoaders.java:197)
        ...
        at 
org.apache.logging.log4j.core.impl.ThrowableProxyHelper.toExtendedStackTrace(ThrowableProxyHelper.java:112)
        ...
        at 
org.apache.flink.streaming.runtime.tasks.AsyncCheckpointRunnable.run(AsyncCheckpointRunnable.java:150)
{code}

The PrintFailedVerifications sink received 0 records on all three subtasks, so 
no TTL verification failed.
            Reporter: Martijn Visser






--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to