Skip to content

Commit

Permalink
fix: return reset offset error for new connection (#33)
Browse files Browse the repository at this point in the history
  • Loading branch information
kalbhor authored Nov 4, 2024
1 parent b5059eb commit dba537d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/relay/source_pool.go
Original file line number Diff line number Diff line change
Expand Up @@ -609,11 +609,11 @@ waitForTopicLag:
sp.log.Info("resetting offsets for consumer group", "id", s.ID, "server", s.Config.BootstrapBrokers, "offsets", of)
resp, err := admCl.CommitOffsets(ctx, sp.cfg.GroupID, of)
if err != nil {
sp.log.Error("error resetting group offset", "err", err)
return fmt.Errorf("error resetting group offset: %w", err)
}

if err := resp.Error(); err != nil {
sp.log.Error("error resetting group offset", "err", err)
return fmt.Errorf("error resetting group offset: %w", err)
}

// _ = resp
Expand Down

0 comments on commit dba537d

Please sign in to comment.