title: Gets an error error in Kafka producer when creating topic but the topic is created on the Kafka server
body: <p>I'm using Kafka producer 10.2.1 to create a topic and to write to topic, when I create the topic I get the following error, but the topic is created:</p>
  
  <pre><code>java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
      at org.apache.kafka.clients.producer.KafkaProducer$FutureFailure.&lt;init&gt;(KafkaProducer.java:774)
      at org.apache.kafka.clients.producer.KafkaProducer.doSend(KafkaProducer.java:494)
      at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:440)
      at org.apache.kafka.clients.producer.KafkaProducer.send(KafkaProducer.java:360)
      at kafka.AvroProducer.produce(AvroProducer.java:47)
      at samples.TestMqttSource.messageReceived(TestMqttSource.java:89)
      at mqtt.JsonConsumer.messageArrived(JsonConsumer.java:132)
      at org.eclipse.paho.client.mqttv3.internal.CommsCallback.deliverMessage(CommsCallback.java:477)
      at org.eclipse.paho.client.mqttv3.internal.CommsCallback.handleMessage(CommsCallback.java:380)
      at org.eclipse.paho.client.mqttv3.internal.CommsCallback.run(CommsCallback.java:184)
      at java.lang.Thread.run(Thread.java:748)
  Caused by: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
  msg org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
  loc org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
  cause org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
  excep java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Failed to update metadata after 60000 ms.
  </code></pre>
  
  <p>All suggestions is highly appreciated.</p>