Skip to content

Commit

Permalink
Add error log for ForceCancel job (#143)
Browse files Browse the repository at this point in the history
  • Loading branch information
lrao100 committed Dec 12, 2019
1 parent 4edffc5 commit 437a1ad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/controller/flink/client/api.go
Original file line number Diff line number Diff line change
Expand Up @@ -211,6 +211,7 @@ func (c *FlinkJobManagerClient) ForceCancelJob(ctx context.Context, url string,
response, err := c.executeRequest(ctx, httpPatch, url, nil)
if err != nil {
c.metrics.forceCancelJobFailureCounter.Inc(ctx)
logger.Errorf(ctx, fmt.Sprintf("Force cancel job failed with error %v", err))
return GetRetryableError(err, v1beta1.ForceCancelJob, GlobalFailure, DefaultRetries)
}
if response != nil && !response.IsSuccess() {
Expand Down

0 comments on commit 437a1ad

Please sign in to comment.