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

Flaky Test KafkaProducerTest.testCloseIsForcedOnPendingAddOffsetRequest

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • None
    • 2.4.0
    • core

    Description

      Error:

      org.junit.runners.model.TestTimedOutException: test timed out after 5000 milliseconds
      	at java.lang.Object.wait(Native Method)
      	at java.lang.Thread.join(Thread.java:1260)
      	at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1190)
      	at org.apache.kafka.clients.producer.KafkaProducer.close(KafkaProducer.java:1167)
      	at org.apache.kafka.clients.producer.KafkaProducerTest.testCloseIsForcedOnPendingAddOffsetRequest(KafkaProducerTest.java:894)
      	at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      	at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
      	at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
      	at java.lang.reflect.Method.invoke(Method.java:498)
      	at org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:59)
      	at org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:12)
      	at org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:56)
      	at org.junit.internal.runners.statements.InvokeMethod.evaluate(InvokeMethod.java:17)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:288)
      	at org.junit.internal.runners.statements.FailOnTimeout$CallableStatement.call(FailOnTimeout.java:282)
      	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      	at java.lang.Thread.run(Thread.java:748)
       

      Currently 100% reproducible locally when running the whole test suite. Does not repro when running this test class individually. This is on the latest upstream trunk with no changes applied.

      Attachments

        Issue Links

          Activity

            People

              guozhang Guozhang Wang
              cpettitt-confluent Chris Pettitt
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: