try to recover kafka fatals
All checks were successful
test / test (push) Successful in 4m38s

Signed-off-by: Vasiliy Tolstov <v.tolstov@unistack.org>
This commit is contained in:
2025-04-07 18:55:28 +03:00
parent 747e35148f
commit 0845f4873b
3 changed files with 37 additions and 17 deletions

View File

@@ -199,7 +199,7 @@ func (s *Subscriber) revoked(ctx context.Context, c *kgo.Client, revoked map[str
s.killConsumers(ctx, revoked)
if err := c.CommitMarkedOffsets(ctx); err != nil {
s.kopts.Logger.Error(ctx, "[kgo] revoked CommitMarkedOffsets error", err)
// s.connected.Store(0)
s.connected.Store(0)
}
}