Help Center/ Distributed Message Service for Kafka/ User Guide (Paris Region)/ Troubleshooting/ Troubleshooting Error "Topic {{topic_name}} not present in metadata after 60000 ms" During Message Production or Consumption
Updated on 2024-04-07 GMT+08:00

Troubleshooting Error "Topic {{topic_name}} not present in metadata after 60000 ms" During Message Production or Consumption

Symptom

For a Kafka instance deployed in multiple AZs, if one of the AZs is faulty, error message "Topic {{topic_name}} not present in metadata after 60000 ms" may be reported on the Kafka client during message production or consumption, as shown in the following figure.

Solution

You can use any of the following methods to solve this problem:

  • Upgrade the Kafka client to v2.7 or later, and set socket.connection.setup.timeout.ms to a value greater than 1s and less than the value of request.timeout.ms divided by the number of Kafka server nodes.
  • Change the value of request.timeout.ms of the Kafka client to a value greater than 127s.
  • Change the Linux network parameter net.ipv4.tcp_syn_retries of the Kafka client to 3.