In this case, the broker sends a response with an error code to the
producer, and then the producer retries the metadata request.
Other than that, your understanding of the producer is correct.

NEW: Monitor These Apps!
elasticsearch, apache solr, apache hbase, hadoop, redis, casssandra, amazon cloudwatch, mysql, memcached, apache kafka, apache zookeeper, apache storm, ubuntu, centOS, red hat, debian, puppet labs, java, senseiDB