Skip to content

Commit

Permalink
Merge pull request #2208 from k-wall/retry-batch-leak
Browse files Browse the repository at this point in the history
fix: prevent AsyncProducer retryBatch from leaking
  • Loading branch information
dnwe authored Apr 13, 2022
2 parents 2c04192 + c34e274 commit 602d831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions async_producer.go
Original file line number Diff line number Diff line change
Expand Up @@ -1064,6 +1064,7 @@ func (p *asyncProducer) retryBatch(topic string, partition int32, pSet *partitio
}
bp := p.getBrokerProducer(leader)
bp.output <- produceSet
p.unrefBrokerProducer(leader, bp)
}

func (bp *brokerProducer) handleError(sent *produceSet, err error) {
Expand Down

0 comments on commit 602d831

Please sign in to comment.