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

Flaky test TopicAdminTest::retryEndOffsetsShouldRetryWhenTopicNotFound

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • None
    • 3.6.0
    • connect
    • None

    Description

      This test fails frequently when I run unit tests locally, but I've never seen it fail during a CI build.

      Failure message:

          org.apache.kafka.connect.errors.ConnectException: Failed to list offsets for topic partitions.

              at app//org.apache.kafka.connect.util.TopicAdmin.retryEndOffsets(TopicAdmin.java:777)

              at app//org.apache.kafka.connect.util.TopicAdminTest.retryEndOffsetsShouldRetryWhenTopicNotFound(TopicAdminTest.java:570)

       

              Caused by:

              org.apache.kafka.connect.errors.ConnectException: Fail to list offsets for topic partitions after 1 attempts.  Reason: Timed out while waiting to get end offsets for topic 'myTopic' on brokers at {retry.backoff.ms=0}

                  at app//org.apache.kafka.connect.util.RetryUtil.retryUntilTimeout(RetryUtil.java:106)

                  at app//org.apache.kafka.connect.util.RetryUtil.retryUntilTimeout(RetryUtil.java:56)

                  at app//org.apache.kafka.connect.util.TopicAdmin.retryEndOffsets(TopicAdmin.java:768)

                  ... 1 more

       

                  Caused by:

                  org.apache.kafka.common.errors.TimeoutException: Timed out while waiting to get end offsets for topic 'myTopic' on brokers at {retry.backoff.ms=0}

       

                      Caused by:

                      java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.TimeoutException: Timed out waiting to send the call. Call: listOffsets(api=METADATA)

                          at java.base/java.util.concurrent.CompletableFuture.reportGet(CompletableFuture.java:395)

                          at java.base/java.util.concurrent.CompletableFuture.get(CompletableFuture.java:1999)

                          at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:165)

                          at org.apache.kafka.connect.util.TopicAdmin.endOffsets(TopicAdmin.java:716)

                          at org.apache.kafka.connect.util.TopicAdmin.lambda$retryEndOffsets$7(TopicAdmin.java:769)

                          at org.apache.kafka.connect.util.RetryUtil.retryUntilTimeout(RetryUtil.java:87)

                          at org.apache.kafka.connect.util.RetryUtil.retryUntilTimeout(RetryUtil.java:56)

                          at org.apache.kafka.connect.util.TopicAdmin.retryEndOffsets(TopicAdmin.java:768)

                          at org.apache.kafka.connect.util.TopicAdminTest.retryEndOffsetsShouldRetryWhenTopicNotFound(TopicAdminTest.java:570)

       

                          Caused by:

                          org.apache.kafka.common.errors.TimeoutException: Timed out waiting to send the call. Call: listOffsets(api=METADATA)

      Attachments

        Issue Links

          Activity

            People

              ChrisEgerton Chris Egerton
              ChrisEgerton Chris Egerton
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: