Skip to content

Commit

Permalink
Fix: set FailureReasons when job failed (#171)
Browse files Browse the repository at this point in the history
  • Loading branch information
regadas authored Dec 9, 2021
1 parent ac86388 commit 93f1f1c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions controllers/flinkcluster_updater.go
Original file line number Diff line number Diff line change
Expand Up @@ -625,6 +625,7 @@ func (updater *ClusterStatusUpdater) deriveJobStatus() *v1beta1.JobStatus {
if newJob.State == v1beta1.JobStateLost && oldJob.FinalSavepoint {
newJob.FinalSavepoint = false
}
fallthrough
case newJob.IsFailed():
if len(newJob.FailureReasons) == 0 {
newJob.FailureReasons = []string{}
Expand Down

0 comments on commit 93f1f1c

Please sign in to comment.