org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for test1-0

kafka-users | Shekar Tippur | 11 months ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Re: Kafka producer metadata issue

    kafka-users | 11 months ago | Shekar Tippur
    org.apache.kafka.common.errors.TimeoutException: Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for test1-0

    Root Cause Analysis

    1. org.apache.kafka.common.errors.TimeoutException

      Batch containing 1 record(s) expired due to timeout while requesting metadata from brokers for test1-0

      at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError()
    2. Apache Kafka
      FutureRecordMetadata.get
      1. org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:65)
      2. org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:52)
      3. org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:25)
      3 frames
    3. com.companyname.plumber
      PlumberKafkaProducer.main
      1. com.companyname.plumber.service.rest.api.PlumberKafkaProducer.main(PlumberKafkaProducer.java:78)
      1 frame
    4. Java RT
      Method.invoke
      1. sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      2. sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      3. sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      4. java.lang.reflect.Method.invoke(Method.java:497)
      4 frames
    5. IDEA
      AppMain.main
      1. com.intellij.rt.execution.application.AppMain.main(AppMain.java:140)
      1 frame