Lianet Magrans created KAFKA-18415:
--------------------------------------

             Summary: Flaky ApplicationEventHandlerTest 
testRecordApplicationEventQueueSize
                 Key: KAFKA-18415
                 URL: https://issues.apache.org/jira/browse/KAFKA-18415
             Project: Kafka
          Issue Type: Test
          Components: consumer
    Affects Versions: 4.0.0
            Reporter: Lianet Magrans
            Assignee: Lianet Magrans


Fails with 

org.opentest4j.AssertionFailedError: expected: <1.0> but was: <0.0>

[https://github.com/apache/kafka/actions/runs/12600961241/job/35121534600?pr=17099]

Looks like race condition. I guess this could easily happen if the background 
thread removes the event from the queue (record metric for queue size with 0) 
before the app thread records the queue size with 1 (which happens after adding 
the event to the queue).



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to