[ 
https://issues.apache.org/jira/browse/KAFKA-16019?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17818983#comment-17818983
 ] 

Kirk True commented on KAFKA-16019:
-----------------------------------

{{testPerPartitionLeadMetricsCleanUpWithSubscribe}} is now passing 
consistently, so marking this as fixed.

> Some of the tests in PlaintextConsumer can't seem to deterministically invoke 
> and verify the consumer callback
> --------------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-16019
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16019
>             Project: Kafka
>          Issue Type: Test
>          Components: clients, consumer
>            Reporter: Philip Nee
>            Assignee: Kirk True
>            Priority: Critical
>              Labels: consumer-threading-refactor, integration-tests, timeout
>             Fix For: 3.8.0
>
>
> I was running the PlaintextConsumer to test the async consumer; however, a 
> few tests were failing with not being able to verify the listener is invoked 
> correctly
> For example `testPerPartitionLeadMetricsCleanUpWithSubscribe`
> Around 50% of the time, the listener's callsToAssigned was never incremented 
> correctly.  Event changing it to awaitUntilTrue it was still the same case
> {code:java}
> consumer.subscribe(List(topic, topic2).asJava, listener)
> val records = awaitNonEmptyRecords(consumer, tp)
> assertEquals(1, listener.callsToAssigned, "should be assigned once") {code}



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

Reply via email to