KAFKA-1252 Implement retries in new producer.