Skip to content

Commit

Permalink
fix: Kafka should start at LastOffset by default
Browse files Browse the repository at this point in the history
  • Loading branch information
alexec committed Jul 16, 2021
1 parent af46d66 commit 4cdf4bb
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions runner/sidecar/source/kafka/kafka.go
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,11 @@ func New(ctx context.Context, pipelineName, stepName, sourceName string, x dfv1.
TLS: t,
}
reader := kafka.NewReader(kafka.ReaderConfig{
Brokers: x.Brokers,
Dialer: dialer,
GroupID: groupName,
Topic: x.Topic,
Brokers: x.Brokers,
Dialer: dialer,
GroupID: groupName,
Topic: x.Topic,
StartOffset: kafka.LastOffset,
})
go wait.JitterUntil(func() {
ctx := context.Background()
Expand Down

0 comments on commit 4cdf4bb

Please sign in to comment.