当它试图向主题发送MESSAGE时,我们会间歇性地收到此异常。 卡夫卡版本:0.10.0.1
java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for topic-89
at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:65) ~[kafka-clients-0.10.0.1-cp1.jar:?]
at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:52) ~[kafka-clients-0.10.0.1-cp1.jar:?]
at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:25) ~[kafka-clients-0.10.0.1-cp1.jar:?]
初步调查显示,每当我们收到此提示时,它似乎只持续24小时,然后它自行解析,而无需重新启动群集或执行任何操作。
另一件事是,这只发生在某些主题而不是所有主题上。