Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Carl-Zhou-CN committed Sep 4, 2024
1 parent e8ce65b commit 65e229c
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,8 @@ public void emitRecord(
} else {
deserializationSchema.deserialize(consumerRecord.value(), outputCollector);
}
// consumerRecord.offset + 1 is the offset commit to Kafka and also the start offset
// for the next run
splitState.setCurrentOffset(consumerRecord.offset() + 1);
} catch (IOException e) {
if (this.messageFormatErrorHandleWay == MessageFormatErrorHandleWay.SKIP) {
Expand Down

0 comments on commit 65e229c

Please sign in to comment.