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

David Radley commented on FLINK-38102:
--------------------------------------

I have just hit this locally seeing :
[ERROR] Failures: 
[ERROR]   
RestApiMetricsCollectorTest.testJmMetricCollection:206->lambda$testJmMetricCollection$5:208->assertMetricValueIs:338
 
expected: 3
 but was: 2
[INFO] 

I tried putting a delay between the start of the mini cluster and the rest 
call. But this did not solve the issue.

I suspect this issue will be solved when we take in 
[https://github.com/apache/flink/pull/27393](https://github.com/apache/flink/pull/27393)
 which sorts out a threading issue in this area. 



> RestApiMetricsCollectorTest is unstable
> ---------------------------------------
>
>                 Key: FLINK-38102
>                 URL: https://issues.apache.org/jira/browse/FLINK-38102
>             Project: Flink
>          Issue Type: Bug
>          Components: Kubernetes Operator
>    Affects Versions: kubernetes-operator-1.13.0
>            Reporter: Robert Metzger
>            Priority: Major
>
> https://github.com/apache/flink-kubernetes-operator/actions/runs/16268410162/job/45929511648#logs
> {code:java}
> 2025-07-14 13:39:16,124 o.a.f.r.b.PermanentBlobCache   [INFO ] Shutting down 
> BLOB cache
> 2025-07-14 13:39:16,124 o.a.f.r.b.TransientBlobCache   [INFO ] Shutting down 
> BLOB cache
> 2025-07-14 13:39:16,125 o.a.f.r.b.BlobServer           [INFO ] Stopped BLOB 
> server at 0.0.0.0:41465
> 2025-07-14 13:39:16,130 o.a.f.r.r.p.PekkoRpcService    [INFO ] Stopped Pekko 
> RPC service.
> Error:  Tests run: 3, Failures: 1, Errors: 0, Skipped: 0, Time elapsed: 2.097 
> s <<< FAILURE! - in org.apache.flink.autoscaler.RestApiMetricsCollectorTest
> Error:  
> org.apache.flink.autoscaler.RestApiMetricsCollectorTest.testJmMetricCollection
>   Time elapsed: 1.825 s  <<< FAILURE!
> org.opentest4j.AssertionFailedError: 
> expected: 3
>  but was: 0
>       at 
> org.apache.flink.autoscaler.RestApiMetricsCollectorTest.assertMetricValueIs(RestApiMetricsCollectorTest.java:319)
>       at 
> org.apache.flink.autoscaler.RestApiMetricsCollectorTest.lambda$testJmMetricCollection$4(RestApiMetricsCollectorTest.java:189)
>       at 
> org.apache.flink.autoscaler.RestApiMetricsCollectorTest.testJmMetricCollection(RestApiMetricsCollectorTest.java:187)
> {code}



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

Reply via email to