Skip to content

Commit 2113526

Browse files
fix: use KafkaEndOffset instead of -1 (#15099)
1 parent 7410f10 commit 2113526

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎pkg/kafka/partition/reader_service.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ func newReaderService(
120120
consumerFactory: consumerFactory,
121121
logger: log.With(logger, "partition", reader.Partition(), "consumer_group", reader.ConsumerGroup()),
122122
metrics: newServiceMetrics(reg),
123-
lastProcessedOffset: -1,
123+
lastProcessedOffset: kafkaEndOffset,
124124
}
125125

126126
// Create the committer

0 commit comments

Comments
 (0)