Skip to content

Commit

Permalink
[Kinesis] Fix kinesis sink connector does not ack messages. (apache#1…
Browse files Browse the repository at this point in the history
…0769)

### Motivation

Currently, when the kinesis sink connector sends the message successfully, it will not ack the message.

### Modifications

* Ack messages after the sink connector send messages successfully.
  • Loading branch information
RobertIndie authored and ciaocloud committed Oct 16, 2021
1 parent dc4533a commit 1b8f453
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,7 @@ public void onSuccess(UserRecordResult result) {
kinesisSink.sinkContext.recordMetric(METRICS_TOTAL_SUCCESS, 1);
}
kinesisSink.previousPublishFailed = FALSE;
this.resultContext.ack();
recycle();
}

Expand Down

0 comments on commit 1b8f453

Please sign in to comment.