Selaa lähdekoodia

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

Oops
Evan Huus 10 vuotta sitten
vanhempi
commit
542246cf1e
1 muutettua tiedostoa jossa 1 lisäystä ja 0 poistoa
  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