[ 
https://issues.apache.org/jira/browse/FLINK-40793?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18132997#comment-18132997
 ] 

Martijn Visser commented on FLINK-40793:
----------------------------------------

Two more on master, both nightlies of 2026-10-24 on the same commit:
https://github.com/apache/flink/actions/runs/40052500790/job/120751327187 (Java 
11, module core, jobStatusIsRestartingIfOneVertexIsWaitingForRestart)
https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=80457&view=logs&j=77a9d8e1-d610-59b3-fc2a-4766541e0e33
 (test_cron_azure core, JDK 17, 
testStartCheckpointOnlyAfterVertexWithBlockingEdgeFinished)

{code}
[ERROR] 
org.apache.flink.runtime.scheduler.DefaultSchedulerTest.jobStatusIsRestartingIfOneVertexIsWaitingForRestart
 -- Time elapsed: 0.014 s <<< FAILURE!
org.opentest4j.AssertionFailedError:
expected: RUNNING
 but was: RESTARTING
        at 
org.apache.flink.runtime.scheduler.DefaultSchedulerTest.jobStatusIsRestartingIfOneVertexIsWaitingForRestart(DefaultSchedulerTest.java:1080)
{code}

Both fork logs have the main thread violation and a deployment failing with the 
AssertionError. In the first run it is the restarted source (2/2), so a third 
restart is still pending when the test expects RUNNING:

{code}
02:25:44,547 [   pool-486-thread-1] WARN  
org.apache.flink.runtime.rpc.MainThreadValidatorUtil [] - Violation of main 
thread constraint detected: expected 
<Thread[ComponentMainThread-ForkJoinPool-137-worker-3,5,main]> but running in 
<Thread[pool-486-thread-1,5,main]>.
02:25:44,551 [ComponentMainThread-ForkJoinPool-137-worker-3] INFO  
org.apache.flink.runtime.executiongraph.ExecutionGraph [] - source (2/2) 
(..._1_1) switched from DEPLOYING to FAILED on e08694f28ed8fa2fe72da9f855a6fa96 
@ localhost (dataPort=42).
java.lang.AssertionError
        at 
org.apache.flink.runtime.concurrent.ComponentMainThreadExecutorServiceAdapter$1.execute(ComponentMainThreadExecutorServiceAdapter.java:66)
{code}

> DefaultSchedulerTest is unstable across many test methods
> ---------------------------------------------------------
>
>                 Key: FLINK-40793
>                 URL: https://issues.apache.org/jira/browse/FLINK-40793
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Coordination
>    Affects Versions: 2.2.2, 2.3.1, 2.4.0
>            Reporter: sepuri sai krishna
>            Assignee: sepuri sai krishna
>            Priority: Critical
>              Labels: pull-request-available, test-stability
>
> DefaultSchedulerTest failed 17 times in the 90 days to 2026-09-15, in 11 
> different test methods, on all core CI profiles (Java 11, 17, 21, Hadoop, 
> AdaptiveScheduler). It is not limited to master: the most recent two are 
> 2026-09-14 on master and 2026-09-10 on release-2.3.
> Recent runs:
> * https://github.com/apache/flink/actions/runs/34798011374/job/103837976051 
> master, testExceptionHistoryWithRestartableFailure
> * https://github.com/apache/flink/actions/runs/34427845031/job/102726173515 
> release-2.3, testExceptionHistoryWithRestartableFailure
> * https://github.com/apache/flink/actions/runs/33866786819/job/101007980019 
> testExceptionHistoryConcurrentRestart
> * https://github.com/apache/flink/actions/runs/33349433782/job/99360730245 
> testJobStatusHookWithJobCanceled
> * https://github.com/apache/flink/actions/runs/32136151763/job/95710148170 
> testExceptionHistoryWithGlobalFailOver
> * https://github.com/apache/flink/actions/runs/31662007213/job/94339220821 
> testJobStatusHookWithJobFinished
> * https://github.com/apache/flink/actions/runs/30418270959/job/90470994165 
> testStartCheckpointOnlyAfterVertexWithBlockingEdgeFinished
> Other failing methods: skipDeploymentIfVertexVersionOutdated, 
> testDeploymentWaitForProducedPartitionRegistration, 
> failGlobalWhenRestoringStateFails, 
> jobStatusIsRestartingIfOneVertexIsWaitingForRestart, 
> abortPendingCheckpointsWhenRestartingTasks.
> {code}
> [ERROR] 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.testJobStatusHookWithJobCanceled
>  -- Time elapsed: 0.014 s <<< FAILURE!
> org.opentest4j.AssertionFailedError:
> expected: CANCELED
>  but was: FAILED
>       at 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.commonJobStatusHookTest(DefaultSchedulerTest.java:1933)
>       at 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.testJobStatusHookWithJobCanceled(DefaultSchedulerTest.java:1818)
> {code}
> {code}
> [ERROR] 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.testStartCheckpointOnlyAfterVertexWithBlockingEdgeFinished
>  -- Time elapsed: 0.026 s <<< ERROR!
> java.lang.IllegalStateException
>       at 
> org.apache.flink.util.Preconditions.checkState(Preconditions.java:177)
>       at 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.transitionToRunning(DefaultSchedulerTest.java:2362)
>       at 
> org.apache.flink.runtime.scheduler.DefaultSchedulerTest.testStartCheckpointOnlyAfterVertexWithBlockingEdgeFinished(DefaultSchedulerTest.java:1877)
> {code}



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to