You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* Fix FlinkJobStatusWatcher deadlock
* Fix the issue where completed task status is not being updated
---------
Co-authored-by: liguoliang1 <liguoliang1@hisense.com>
Copy file name to clipboardExpand all lines: streampark-flink/streampark-flink-kubernetes/src/main/scala/org/apache/streampark/flink/kubernetes/watcher/FlinkJobStatusWatcher.scala
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -314,8 +314,8 @@ class FlinkJobStatusWatcher(conf: JobStatusWatcherConfig = JobStatusWatcherConfi
314
314
)
315
315
valjobState= trackId match {
316
316
case id
317
-
if watchController.canceling.has(id) || latest.jobState.equals(
318
-
FlinkJobState.CANCELLING) =>
317
+
if watchController.canceling.has(id) ||Option(latest).exists(
318
+
_.jobState ==FlinkJobState.CANCELLING) =>
319
319
logger.info(s"trackId ${trackId.toString} is canceling")
320
320
if (deployExists) FlinkJobState.CANCELLINGelseFlinkJobState.CANCELED
Copy file name to clipboardExpand all lines: streampark-flink/streampark-flink-kubernetes/src/main/scala/org/apache/streampark/flink/kubernetes/watcher/FlinkWatcher.scala
0 commit comments