You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Kirk True (Jira)" <ji...@apache.org> on 2024/02/01 04:51:00 UTC

[jira] [Updated] (KAFKA-16023) PlaintextConsumerTest needs to wait for reconciliation to complete before proceeding

     [ https://issues.apache.org/jira/browse/KAFKA-16023?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Kirk True updated KAFKA-16023:
------------------------------
    Component/s:     (was: system tests)
         Labels: consumer-threading-refactor integration-tests timeout  (was: consumer-threading-refactor timeout)

> PlaintextConsumerTest needs to wait for reconciliation to complete before proceeding
> ------------------------------------------------------------------------------------
>
>                 Key: KAFKA-16023
>                 URL: https://issues.apache.org/jira/browse/KAFKA-16023
>             Project: Kafka
>          Issue Type: Test
>          Components: clients, consumer
>            Reporter: Philip Nee
>            Assignee: Kirk True
>            Priority: Major
>              Labels: consumer-threading-refactor, integration-tests, timeout
>             Fix For: 3.8.0
>
>
> Several tests in PlaintextConsumerTest.scala (such as testPerPartitionLagMetricsCleanUpWithSubscribe) uses:
> assertEquals(1, listener.callsToAssigned, "should be assigned once")
> However, as the timing for reconciliation completion is not deterministic due to asynchronous processing. We actually need to wait until the condition to happen.
> However, another issue is the timeout - some of these tasks might not complete within the 600ms timeout, so the tests are deemed to be flaky.



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