Skip to content

Commit

Permalink
[Kinesis] Fix kinesis sink connector does not ack messages. (#10769)
Browse files Browse the repository at this point in the history
### 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.

(cherry picked from commit b458b4a)
  • Loading branch information
RobertIndie authored and zymap committed Jun 2, 2021
1 parent 121305f commit 6bbb8d5
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -238,6 +238,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 6bbb8d5

Please sign in to comment.