Skip to content

Commit

Permalink
fix: use KafkaEndOffset instead of -1 (#15099)
Browse files Browse the repository at this point in the history
  • Loading branch information
grobinson-grafana authored Nov 25, 2024
1 parent 7410f10 commit 2113526
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kafka/partition/reader_service.go
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@ func newReaderService(
consumerFactory: consumerFactory,
logger: log.With(logger, "partition", reader.Partition(), "consumer_group", reader.ConsumerGroup()),
metrics: newServiceMetrics(reg),
lastProcessedOffset: -1,
lastProcessedOffset: kafkaEndOffset,
}

// Create the committer
Expand Down

0 comments on commit 2113526

Please sign in to comment.