Skip to content

Commit

Permalink
More safety check
Browse files Browse the repository at this point in the history
  • Loading branch information
alok87 committed Mar 19, 2021
1 parent b06fa03 commit 3b2451b
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions controllers/redshiftsink_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -411,6 +411,9 @@ func (r *RedshiftSinkReconciler) reconcile(
klog.Fatalf("rsk/%s unexpected status, released=0", rsk.Name)
}
}
if len(status.diffTopics) == 0 && len(status.reloading) > 0 {
klog.Fatalf("rsk/%s unexpected status, no diff but reloading", rsk.Name)
}

// SinkGroup are of following types:
// 1. main: sink group which has desiredMaskVersion
Expand Down

0 comments on commit 3b2451b

Please sign in to comment.