Skip to content

Commit 0a1dacd

Browse files
[FLINK-37320] [Observer] FINISHED finite streaming jobs incorrectly being set to RECONCILING
1 parent 44dd679 commit 0a1dacd

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

flink-kubernetes-operator/src/main/java/org/apache/flink/kubernetes/operator/observer/deployment/AbstractFlinkDeploymentObserver.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,10 @@ protected void observeJmDeployment(FlinkResourceContext<FlinkDeployment> ctx) {
152152
}
153153

154154
deploymentStatus.setJobManagerDeploymentStatus(JobManagerDeploymentStatus.MISSING);
155-
deploymentStatus.getJobStatus().setState(JobStatus.RECONCILING);
155+
156+
if (!ReconciliationUtils.isJobInTerminalState(deploymentStatus)) {
157+
deploymentStatus.getJobStatus().setState(JobStatus.RECONCILING);
158+
}
156159

157160
if (previousJmStatus != JobManagerDeploymentStatus.MISSING
158161
&& previousJmStatus != JobManagerDeploymentStatus.ERROR) {

0 commit comments

Comments
 (0)