Skip to content

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

@vincentnull

Description

@vincentnull

Search before asking

  • I had searched in the issues 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

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

Image Image

Are you willing to submit PR?

  • Yes I am willing to submit a PR!(您是否要贡献这个PR?)

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions