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

Yuepeng Pan edited comment on FLINK-40132 at 11/15/26, 2:03 PM:
----------------------------------------------------------------

Merged into master(2.5.0) via: f40c45bafee1ebca70762b6f3f9afce86d86b816

BP for 

release-2.4 branch via: cf26ce97fd5b91bb1042d14f09c08b2a0a27d5c6
release-2.3 branch via: 002d8d72745bf93d4d3165683ed02efcd8a6f798
release-2.2 branch via: cee5687e73f22cab51debb44a03bc4711d9305f7


was (Author: JIRAUSER301104):
Merged into master(2.5.0) via: f40c45bafee1ebca70762b6f3f9afce86d86b816

pending BP for 

2.4
2.3
2.2
1.20

> MixedKubernetesServerExtension teardown flaky with RejectedExecutionException 
> from Fabric8 Vert.x mock server shutdown
> ----------------------------------------------------------------------------------------------------------------------
>
>                 Key: FLINK-40132
>                 URL: https://issues.apache.org/jira/browse/FLINK-40132
>             Project: Flink
>          Issue Type: Bug
>          Components: Deployment / Kubernetes
>    Affects Versions: 2.3.1, 2.4.0
>            Reporter: Martijn Visser
>            Assignee: Purushottam Sinha
>            Priority: Major
>              Labels: pull-request-available, test-stability
>             Fix For: 2.4.0, 2.5.0
>
>
> https://dev.azure.com/apache-flink/apache-flink/_build/results?buildId=77011&view=results
>  (leg: test_cron_azure misc)
> {code} 
> 05:07:40.216 [ERROR] 
> ...InitTaskManagerDecoratorWithPodTemplateTest.testNodeSelectorMerging <<< 
> ERROR! java.util.concurrent.RejectedExecutionException: event executor 
> terminated at io.netty.util.concurrent.SingleThreadEventExecutor.reject(...) 
> at io.vertx.core.impl.future.FutureImpl.onComplete(...) at 
> io.fabric8.mockwebserver.MockWebServer.await(MockWebServer.java:257) at 
> io.fabric8.mockwebserver.MockWebServer.shutdown(MockWebServer.java:169) at 
> io.fabric8.kubernetes.client.server.mock.KubernetesMockServer.destroy(...) at 
> org.apache.flink.kubernetes.MixedKubernetesServerExtension.afterEach(MixedKubernetesServerExtension.java:76)
>  {code}
> Tests using the Fabric8 mock server intermittently fail in 
> {{MixedKubernetesServerExtension#afterEach}} -> 
> {{KubernetesMockServer.destroy()}} -> {{MockWebServer#shutdown()}} with 
> {{RejectedExecutionException: event executor terminated}}. The test body 
> passes; the exception is thrown during teardown (surefire attributes it to 
> the last-run method, here {{testNodeSelectorMerging}}).
> This is an upstream Fabric8 bug: a timing race (+ non-idempotent shutdown) in 
> the Vert.x-based {{MockWebServer#shutdown()}} — 
> fabric8io/kubernetes-client#7747, fixed in Fabric8 7.7.0. It was introduced 
> into Flink by FLINK-38093, which moved the mock server onto the Vert.x 
> implementation when bumping Fabric8 to 7.3.1 (Flink master pins 7.3.1).
> We could either tolerate the RejectedExecutionException on teardown, or 
> choose upgrading Fabric8 to >= 7.7.0. That is the eventual clean fix but 
> drags OkHttp 3->5 and an unrelocated Kotlin runtime into the core 
> distribution by default.



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

Reply via email to