Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-16427

KafkaConsumer#position() does not respect timeout when group protocol is CONSUMER

    XMLWordPrintableJSON

Details

    Description

      When

      `long position(TopicPartition partition, final Duration timeout);`

      is called on an unknown topic partition (and auto creation is disabled), the method fails to adhere to the timeout supplied.

      e.g. the following warning is logged continuously as metadata fetches are retried 
      [2024-03-26 11:03:48,589] WARN [Consumer clientId=ConsumerTestConsumer, groupId=my-test] Error while fetching metadata with correlation id 200 : {nonexistingTopic=UNKNOWN_TOPIC_OR_PARTITION} (org.apache.kafka.clients.NetworkClient:1313)

      Attachments

        Issue Links

          Activity

            People

              kirktrue Kirk True
              alyssahuang Alyssa Huang
              Bruno Cadonna Bruno Cadonna
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: