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

Flaky test KafkaAdminClientTest.testUnreachableBootstrapServer

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.3.0
    • Component/s: clients
    • Labels:
      None

      Description

      Test failed with:

      org.junit.runners.model.TestTimedOutException: test timed out after 120000 milliseconds
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Object.wait(Object.java:502)
      	at org.apache.kafka.common.internals.KafkaFutureImpl$SingleWaiter.await(KafkaFutureImpl.java:92)
      	at org.apache.kafka.common.internals.KafkaFutureImpl.get(KafkaFutureImpl.java:260)
      	at org.apache.kafka.clients.admin.KafkaAdminClientTest.testUnreachableBootstrapServer(KafkaAdminClientTest.java:303)
      

      Standard output shows:

      [2019-05-17 06:38:01,854] ERROR Uncaught exception in thread 'kafka-admin-client-thread | adminclient-35': (org.apache.kafka.common.utils.KafkaThread:51)
      java.lang.IllegalStateException: Cannot send ClientRequest(expectResponse=true, callback=null, destination=-1, correlationId=0, clientId=mockClientId, createdTimeMs=1558075081853, requestBuilder=MetadataRequestData(topics=[], allowAutoTopicCreation=true, includeClusterAuthorizedOperations=false, includeTopicAuthorizedOperations=false)) since the destination is not ready
      	at org.apache.kafka.clients.MockClient.send(MockClient.java:186)
      	at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.sendEligibleCalls(KafkaAdminClient.java:943)
      	at org.apache.kafka.clients.admin.KafkaAdminClient$AdminClientRunnable.run(KafkaAdminClient.java:1140)
      	at java.lang.Thread.run(Thread.java:748)
      

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rsivaram Rajini Sivaram
                Reporter:
                rsivaram Rajini Sivaram
                Reviewer:
                Ismael Juma
              • Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: