You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@streampark.apache.org by "vincentnull (via GitHub)" <gi...@apache.org> on 2025/11/07 02:16:00 UTC

[I] [Bug] k8s application 容器销毁后,任务仍然处于“运行中”状态 [streampark]

vincentnull opened a new issue, #4311:
URL: https://github.com/apache/streampark/issues/4311

   ### Search before asking
   
   - [x] I had searched in the [issues](https://github.com/apache/streampark/issues?q=is%3Aissue+label%3A%22bug%22) and found no similar issues.
   
   
   ### Java Version
   
   _No response_
   
   ### Scala Version
   
   2.12.x
   
   ### StreamPark Version
   
   2.1.5
   
   ### Flink Version
   
   1.20.3
   
   ### Deploy mode
   
   kubernetes-application
   
   ### What happened
   
   When starting a task using the k8s application loadBalancer mode, after the task execution is completed and the container is destroyed, StreamPark shows the task as running and an ERROR log appears.
   
   使用k8s application loadBalancer 模式启动任务,任务执行完成,容器销毁后,streampark显示任务运行中状态,并且出现ERROR日志
   
   ### Error Exception
   
   ```log
   10:09:09.750 [pool-10-thread-5] WARN org.apache.streampark.flink.kubernetes.watcher.FlinkJobStatusWatcher - Failed to visit flink-sql-demo2 remote flink jobs on kubernetes-native-mode cluster, and the retry access logic is performed.
   10:09:09.752 [pool-10-thread-8] WARN org.apache.streampark.flink.kubernetes.watcher.FlinkJobStatusWatcher - Failed to visit flink-sql-demo remote flink jobs on kubernetes-native-mode cluster, and the retry access logic is performed.
   10:09:09.795 [pool-10-thread-5] ERROR org.apache.streampark.flink.kubernetes.KubernetesRetriever - [StreamPark] Get flinkClient error, the error is: java.lang.RuntimeException: org.apache.flink.client.deployment.ClusterRetrieveException: Could not get the rest endpoint of flink-sql-demo2
   10:09:09.801 [pool-10-thread-8] ERROR org.apache.streampark.flink.kubernetes.KubernetesRetriever - [StreamPark] Get flinkClient error, the error is: java.lang.RuntimeException: org.apache.flink.client.deployment.ClusterRetrieveException: Could not get the rest endpoint of flink-sql-demo
   ```
   
   ### Screenshots
   
   <img width="2458" height="836" alt="Image" src="https://github.com/user-attachments/assets/e6bad99c-ee42-4d19-b62f-4386c58496f9" />
   
   <img width="1842" height="430" alt="Image" src="https://github.com/user-attachments/assets/9a5d309b-78d4-4bec-8e00-c82953904ebe" />
   
   ### Are you willing to submit PR?
   
   - [x] Yes I am willing to submit a PR!(您是否要贡献这个PR?)
   
   ### Code of Conduct
   
   - [x] I agree to follow this project's [Code of Conduct](https://www.apache.org/foundation/policies/conduct)
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] k8s application 容器销毁后,任务仍然处于“运行中”状态 [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys closed issue #4311: [Bug] k8s application 容器销毁后,任务仍然处于“运行中”状态
URL: https://github.com/apache/streampark/issues/4311


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] k8s application 容器销毁后,任务仍然处于“运行中”状态 [streampark]

Posted by "wolfboys (via GitHub)" <gi...@apache.org>.
wolfboys commented on issue #4311:
URL: https://github.com/apache/streampark/issues/4311#issuecomment-5522999701

   Thanks for your feedback. We are closing this issue because it is outdated.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [Bug] k8s application 容器销毁后,任务仍然处于“运行中”状态 [streampark]

Posted by "hanting0130 (via GitHub)" <gi...@apache.org>.
hanting0130 commented on issue #4311:
URL: https://github.com/apache/streampark/issues/4311#issuecomment-5137955204

   请问有处理方式么?我这边也是,作业中使用参数 也并没有用呢
   -Dkubernetes.jobmanager.shutdown-on-application-finish=false
   -Dexecution.runtime-mode=BATCH


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: issues-unsubscribe@streampark.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org