title: Kafka Producer is not retring when Broker is Down
body: <p>I have setup up Kafka using version 0.9 with the basic configuration as
   1 Broker 1 Topic and 1 Partition.</p>
  
  <p>Below are Producer Configurations that I have added to enable the retry from Producer.</p>
  
  <pre><code>    props.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, "localhost:9092");
      props.put(ProducerConfig.RETRIES_CONFIG, 5);
      props.put(ProducerConfig.RECONNECT_BACKOFF_MS_CONFIG, 500);
      props.put(ProducerConfig.ACKS_CONFIG, "all");
      props.put(ProducerConfig.MAX_BLOCK_MS_CONFIG, 500);
      props.put(ProducerConfig.METADATA_MAX_AGE_CONFIG, 50);
  </code></pre>
  
  <p>I understand from the documents that </p>
  
  <p>Setting a value greater than zero will cause the client to resend any record whose send fails with a potentially transient error. Note that this retry is no different than if the client resent the record upon receiving the error.</p>
  
  <p>Both my Broker &amp; Zookeeper are down and the retry operation is not working.</p>
  
  <p>ERROR o.s.k.s.LoggingProducerListener - Exception thrown when sending a message to topic TestTopic1|
  org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 500 ms.</p>
  
  <p>I need to know if I am missing anything here for the retry to work.</p>