Evan Huus il y a 10 ans
Parent
commit
e5967fc1b2
1 fichiers modifiés avec 1 ajouts et 0 suppressions
  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