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

Martijn Visser commented on FLINK-40596:
----------------------------------------

[~snuyanzin] I'm not sure to re-open this one or not. The 
slowMetricTeardownStarvesTheNextJob test added here fails on master, push run 
2026-10-07 (test_ci core, JDK 17):
https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=79929&view=logs&j=0da23115-68bb-5dcd-192c-bd4c8adebde1
It also failed on release-2.2, nightly 2026-09-16 (test_cron_azure core, JDK 
17):
https://dev.azure.com/apache-flink/98463496-1af2-4620-8eab-a2ecc1a2e6fe/_build/results?buildId=79135&view=logs&j=77a9d8e1-d610-59b3-fc2a-4766541e0e33

{code}
[ERROR] 
org.apache.flink.runtime.minicluster.MiniClusterITCase.slowMetricTeardownStarvesTheNextJob
 -- Time elapsed: 1.149 s <<< FAILURE!
java.lang.AssertionError:
Expecting code not to raise a throwable but caught
  "org.apache.flink.runtime.client.JobExecutionException: Job execution failed.
        at 
org.apache.flink.runtime.minicluster.MiniClusterITCase.lambda$slowMetricTeardownStarvesTheNextJob$2(MiniClusterITCase.java:242)
Caused by: 
org.apache.flink.runtime.jobmanager.scheduler.NoResourceAvailableException: 
Could not acquire the minimum required resources.
{code}

In both fork logs the slow-metric-teardown task finished quickly (36 ms and 224 
ms), and the second job's slot request was failed a few milliseconds before the 
first job's slot was freed, well within the 4 s timeout the test sets:

{code}
23:01:56,329 [slow-metric-teardown (1/1)#0] INFO  
org.apache.flink.runtime.taskmanager.Task [] - slow-metric-teardown (1/1)#0 
(d745deb7b3820039a485f1ee7cc68f9d_d7edcd7937f77b6ab9bbbd83180cc7dc_0_0) 
switched from RUNNING to FINISHED.
23:01:56,332 [flink-pekko.actor.default-dispatcher-8] WARN  
org.apache.flink.runtime.resourcemanager.slotmanager.FineGrainedSlotManager [] 
- Could not fulfill resource requirements of job 
c6affeaf37652a75c327173bc5a79125.
23:01:56,332 [flink-pekko.actor.default-dispatcher-6] WARN  
org.apache.flink.runtime.jobmaster.slotpool.DeclarativeSlotPoolBridge [] - 
Could not acquire the minimum required resources, failing slot requests. ...
23:01:56,334 [flink-pekko.actor.default-dispatcher-7] INFO  
org.apache.flink.runtime.resourcemanager.slotmanager.DefaultSlotStatusSyncer [] 
- Freeing slot e9fe93e7e4cb99925dc3a3a7e0ff7e03.
{code}

> Closing metric might lead to a number of test failure
> -----------------------------------------------------
>
>                 Key: FLINK-40596
>                 URL: https://issues.apache.org/jira/browse/FLINK-40596
>             Project: Flink
>          Issue Type: Bug
>          Components: Runtime / Metrics, Tests
>            Reporter: Sergey Nuyanzin
>            Assignee: Sergey Nuyanzin
>            Priority: Major
>              Labels: pull-request-available
>             Fix For: 2.2.2, 2.3.1, 2.4.0
>
>
> It seems after FLINK-40549
> there are multiple test failures like
> https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=78823&view=logs&j=9fbca54a-b970-564d-a715-d51ed99846a0&t=ef3de944-6b04-571b-ac5e-393836decdf7
> https://github.com/apache/flink/actions/runs/34110236852/job/101732744496#step:13:13840



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

Reply via email to