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

DynamicBrokerReconfigurationTest#testAdvertisedListenerUpdate is flaky

    XMLWordPrintableJSON

Details

    • Test
    • Status: Resolved
    • Critical
    • Resolution: Duplicate
    • None
    • None
    • core, unit tests

    Description

      From https://builds.apache.org/job/kafka-pr-jdk10-scala2.12/820/testReport/junit/kafka.server/DynamicBrokerReconfigurationTest/testAdvertisedListenerUpdate/ :

      kafka.server.DynamicBrokerReconfigurationTest.testAdvertisedListenerUpdate
      
      Failing for the past 1 build (Since Failed#820 )
      Took 21 sec.
      Error Message
      java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition.
      Stacktrace
      java.util.concurrent.ExecutionException: org.apache.kafka.common.errors.NotLeaderForPartitionException: This server is not the leader for that topic-partition.
      	at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.valueOrError(FutureRecordMetadata.java:94)
      	at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:77)
      	at org.apache.kafka.clients.producer.internals.FutureRecordMetadata.get(FutureRecordMetadata.java:29)
      	at kafka.server.DynamicBrokerReconfigurationTest.$anonfun$verifyProduceConsume$3(DynamicBrokerReconfigurationTest.scala:996)
      	at scala.collection.TraversableLike.$anonfun$map$1(TraversableLike.scala:234)
      	at scala.collection.Iterator.foreach(Iterator.scala:944)
      	at scala.collection.Iterator.foreach$(Iterator.scala:944)
      	at scala.collection.AbstractIterator.foreach(Iterator.scala:1432)
      	at scala.collection.IterableLike.foreach(IterableLike.scala:71)
      	at scala.collection.IterableLike.foreach$(IterableLike.scala:70)
      	at scala.collection.AbstractIterable.foreach(Iterable.scala:54)
      	at scala.collection.TraversableLike.map(TraversableLike.scala:234)
      	at scala.collection.TraversableLike.map$(TraversableLike.scala:227)
      	at scala.collection.AbstractTraversable.map(Traversable.scala:104)
      	at kafka.server.DynamicBrokerReconfigurationTest.verifyProduceConsume(DynamicBrokerReconfigurationTest.scala:996)
      	at kafka.server.DynamicBrokerReconfigurationTest.testAdvertisedListenerUpdate(DynamicBrokerReconfigurationTest.scala:742)
      

      The above happened with jdk 10.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              yuzhihong@gmail.com Ted Yu
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: