Browse Source

Merge pull request #278 from Shopify/retry-produce-on-timeout

Retry timed-out messages in the producer.
Evan Huus 11 years ago
parent
commit
71cfb7937a
1 changed files with 1 additions and 1 deletions
  1. 1 1
      producer.go

+ 1 - 1
producer.go

@@ -590,7 +590,7 @@ func (p *Producer) flusher(broker *Broker, input chan []*MessageToSend) {
 						}
 						p.returnSuccesses(msgs)
 					}
-				case UnknownTopicOrPartition, NotLeaderForPartition, LeaderNotAvailable:
+				case UnknownTopicOrPartition, NotLeaderForPartition, LeaderNotAvailable, RequestTimedOut:
 					Logger.Printf("producer/flusher/%d state change to [retrying] on %s/%d because %v\n",
 						broker.ID(), topic, partition, block.Err)
 					if currentRetries[topic] == nil {