Explorar o código

Merge pull request #296 from Shopify/clear-retry-buffer

Oops
Evan Huus %!s(int64=10) %!d(string=hai) anos
pai
achega
542246cf1e
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      producer.go

+ 1 - 0
producer.go

@@ -443,6 +443,7 @@ func (p *Producer) leaderDispatcher(topic string, partition int32, input chan *M
 					}
 
 				flushDone:
+					retryState[highWatermark].buf = nil
 					if retryState[highWatermark].expectChaser {
 						Logger.Printf("producer/leader state change to [retrying-%d] on %s/%d\n", highWatermark, topic, partition)
 						break