Ver Fonte

Merge pull request #589 from Shopify/retriable-errors

Upstream has spoken on retriable errors
Evan Huus há 10 anos atrás
pai
commit
2b18ad7079
1 ficheiros alterados com 1 adições e 1 exclusões
  1. 1 1
      async_producer.go

+ 1 - 1
async_producer.go

@@ -727,7 +727,7 @@ func (bp *brokerProducer) handleSuccess(sent *produceSet, response *ProduceRespo
 			}
 			bp.parent.returnSuccesses(msgs)
 		// Retriable errors
-		case ErrUnknownTopicOrPartition, ErrNotLeaderForPartition, ErrLeaderNotAvailable,
+		case ErrInvalidMessage, ErrUnknownTopicOrPartition, ErrLeaderNotAvailable, ErrNotLeaderForPartition,
 			ErrRequestTimedOut, ErrNotEnoughReplicas, ErrNotEnoughReplicasAfterAppend:
 			Logger.Printf("producer/broker/%d state change to [retrying] on %s/%d because %v\n",
 				bp.broker.ID(), topic, partition, block.Err)