You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Jun Rao (Jira)" <ji...@apache.org> on 2025/03/03 18:13:00 UTC
[jira] [Resolved] (KAFKA-18844) Stale features information in QuorumController#registerBroker
[ https://issues.apache.org/jira/browse/KAFKA-18844?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Jun Rao resolved KAFKA-18844.
-----------------------------
Resolution: Fixed
The PR is merged to trunk, 4.0 and 3.9.
> Stale features information in QuorumController#registerBroker
> -------------------------------------------------------------
>
> Key: KAFKA-18844
> URL: https://issues.apache.org/jira/browse/KAFKA-18844
> Project: Kafka
> Issue Type: Bug
> Components: controller
> Affects Versions: 3.9.0
> Reporter: David Jacot
> Assignee: PoAn Yang
> Priority: Major
> Fix For: 4.0.0, 3.9.1
>
>
> In https://github.com/apache/kafka/pull/16848, we added kraft.version to finalized features and got finalized features outside controller event handling thread. This makes finalized features may be stale when processing registerBroker event. Also, some cases like QuorumControllerTest.testBalancePartitionLeaders become flaky cause of outdated MV. This PR moves finalized features back to controller event handling thread to avoid the error.
> ----
> Previous Jira title: Fix flaky QuorumControllerTest.testBalancePartitionLeaders()
> Previous Jira description:
> This test is flaky since a few days ago. See [https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=kafka&search.timeZoneId=Europe%2FZurich&tests.container=org.apache.kafka.controller.QuorumControllerTest&tests.test=testBalancePartitionLeaders()|https://develocity.apache.org/scans/tests?search.relativeStartTime=P28D&search.rootProjectNames=kafka&search.timeZoneId=Europe%2FZurich&tests.container=org.apache.kafka.controller.QuorumControllerTest&tests.test=testBalancePartitionLeaders().]. We need to investigate it and to fix it.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)