Files
doc-exports/docs/dms/umn/kafka-trouble-0004.html
Chen, Junjie ca9677b121 DMS UMN 20230201 Version
Reviewed-by: Antonova, Ekaterina <ekantono@noreply.gitea.eco.tsi-dev.otc-service.com>
Co-authored-by: Chen, Junjie <chenjunjie@huawei.com>
Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2024-07-22 13:20:04 +00:00

18 lines
2.6 KiB
HTML

<a name="kafka-trouble-0004"></a><a name="kafka-trouble-0004"></a>
<h1 class="topictitle1">Troubleshooting Error "Topic {{topic_name}} not present in metadata after 60000 ms" During Message Production or Consumption</h1>
<div id="body0000001174627048"><div class="section" id="kafka-trouble-0004__section7908162551112"><h4 class="sectiontitle">Symptom</h4><p id="kafka-trouble-0004__p23741931181117">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.</p>
<p id="kafka-trouble-0004__p1279134111414"><span><img id="kafka-trouble-0004__image13279154110418" src="en-us_image_0000001174310752.png"></span></p>
</div>
<div class="section" id="kafka-trouble-0004__section166918111611"><h4 class="sectiontitle">Solution</h4><p id="kafka-trouble-0004__p11127161431614">You can use any of the following methods to solve this problem:</p>
<ul id="kafka-trouble-0004__ul524204417179"><li id="kafka-trouble-0004__li1624218444176">Upgrade the Kafka client to v2.7 or later, and set <strong id="kafka-trouble-0004__b1463610324720">socket.connection.setup.timeout.ms</strong> to a value greater than 1s and less than the value of <strong id="kafka-trouble-0004__b9795915164719">request.timeout.ms</strong> divided by the number of Kafka server nodes. To obtain the number of Kafka server brokers:<ol id="kafka-trouble-0004__ol654419119270"><li id="kafka-trouble-0004__li85441011277">Log in to the DMS console.</li><li id="kafka-trouble-0004__li132951919277">Click a Kafka instance. On the instance details page that is displayed, view the value of <strong id="kafka-trouble-0004__b2997119604">Private Network Access</strong> in the <strong id="kafka-trouble-0004__b67411821301">Connection</strong> area. The number of connection addresses next to <strong id="kafka-trouble-0004__b5240131985710">Address</strong> is the number of Kafka server brokers.</li></ol>
</li><li id="kafka-trouble-0004__li3151123112117">Change the value of <strong id="kafka-trouble-0004__b097254711539">request.timeout.ms</strong> of the Kafka client to a value greater than 127s.</li><li id="kafka-trouble-0004__li14273933182319">Change the Linux network parameter <strong id="kafka-trouble-0004__b72041758185317">net.ipv4.tcp_syn_retries</strong> of the Kafka client to <strong id="kafka-trouble-0004__b1678784316557">3</strong>.</li></ul>
</div>
</div>
<div>
<div class="familylinks">
<div class="parentlink"><strong>Parent topic:</strong> <a href="kafka-ug-0723006.html">Troubleshooting</a></div>
</div>
</div>