Skip to content

Commit

Permalink
consumer: avoid bubbling up retriable broker errors
Browse files Browse the repository at this point in the history
  • Loading branch information
twmb committed Apr 16, 2021
1 parent 3edbe09 commit 111f922
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/kgo/consumer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1086,7 +1086,7 @@ func (s *consumerSession) handleListOrEpochResults(loaded loadedOffsets) {
use()

default: // from ErrorCode in a response
if !kerr.IsRetriable(load.err) { // non-retriable response error; signal such in a response
if !kerr.IsRetriable(load.err) && !isRetriableBrokerErr(load.err) { // non-retriable response error; signal such in a response
s.c.addFakeReadyForDraining(load.topic, load.partition, load.err)
slowReloads.addLoad(load.topic, load.partition, loaded.loadType, load.request)
continue
Expand Down

0 comments on commit 111f922

Please sign in to comment.