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

Martijn Visser reopened FLINK-38908:
------------------------------------

Re-opening for release-2.2. 76fbab4f20c476a8f3635cc9df2971ed98a249d2 only went 
to master and release-2.3, and release-2.2 fails the same way:

release-2.2, nightly 2026-09-25 (test_cron_jdk21 core): 
https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=79415&view=logs&j=d06b80b4-9e88-5d40-12a2-18072cf60528

{code}
[ERROR] 
org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionReleaseOnSuspendWhileFinished
 -- Time elapsed: 0.017 s <<< FAILURE!
java.lang.AssertionError:
Expecting
  <CompletableFuture[Completed: 
(de1849baea3644b94f328c3cbff8df43,[9bd2051e1fc25bb5d4c824401700563d#0@c29adff393fc8147da48f12430718e2d_8dd498594b5fae9ad1dbc8c7b6b31a8a_0_0])]>
not to be done.
        at 
org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionReleaseOnStateTransitionsAfterRunning(ExecutionPartitionLifecycleTest.java:122)
        at 
org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionReleaseOnSuspendWhileFinished(ExecutionPartitionLifecycleTest.java:98)
{code}

We should backport 76fbab4f20c476a8f3635cc9df2971ed98a249d2.

> ExecutionPartitionLifecycleTest fails intermittently
> ----------------------------------------------------
>
>                 Key: FLINK-38908
>                 URL: https://issues.apache.org/jira/browse/FLINK-38908
>             Project: Flink
>          Issue Type: Bug
>          Components: Tests
>            Reporter: Mate Czagany
>            Assignee: Mate Czagany
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.3.0
>
>
> Test `ExecutionPartitionLifecycleTest` fails sometimes due to not calling the 
> Scheduler from the main thread
>  
> {code:java}
> [ERROR] 
> org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionTrackedAndNotReleasedWhenFinished
>  -- Time elapsed: 0.025 s <<< FAILURE!
> java.lang.AssertionError:Expecting
>   <CompletableFuture[Completed: 
> [7ca98a3a3dca8a54018d94b6aaad3656#0@f56aeee41ee7ddf12953205f8a7a0fdc_40f8a68acfd720e9e670058a09739fe0_0_0]]>
> not to be done.
> Be aware that the state of the future in this message might not reflect the 
> one at the time when the assertion was performed as it is evaluated later on
>         at 
> org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionTrackingForStateTransition(ExecutionPartitionLifecycleTest.java:229)
>         at 
> org.apache.flink.runtime.executiongraph.ExecutionPartitionLifecycleTest.testPartitionTrackedAndNotReleasedWhenFinished(ExecutionPartitionLifecycleTest.java:147)
>         at java.base/java.lang.reflect.Method.invoke(Method.java:569)
>         at 
> java.base/java.util.concurrent.ForkJoinTask.doExec(ForkJoinTask.java:373)
>         at 
> java.base/java.util.concurrent.ForkJoinPool$WorkQueue.topLevelExec(ForkJoinPool.java:1182)
>         at 
> java.base/java.util.concurrent.ForkJoinPool.scan(ForkJoinPool.java:1655)
>         at 
> java.base/java.util.concurrent.ForkJoinPool.runWorker(ForkJoinPool.java:1622)
>         at 
> java.base/java.util.concurrent.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:165)
>  {code}



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

Reply via email to