Skip to content

Commit

Permalink
revert tpchannel
Browse files Browse the repository at this point in the history
  • Loading branch information
sfc-gh-rcheng committed Nov 1, 2023
1 parent 65f6a05 commit 8cd02e8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -403,7 +403,7 @@ private boolean shouldIgnoreAddingRecordToBuffer(
}

// Don't ignore if we see the expected offset; otherwise log and skip
if (kafkaSinkRecord.kafkaOffset() == (currentProcessedOffset - 1)) {
if ((kafkaSinkRecord.kafkaOffset() - currentProcessedOffset) == 1L) {
LOGGER.debug(
"Got the desired offset:{} from Kafka, we can add this offset to buffer for channel:{}",
kafkaSinkRecord.kafkaOffset(),
Expand Down

0 comments on commit 8cd02e8

Please sign in to comment.