[
https://issues.apache.org/jira/browse/KAFKA-17506?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Chia-Ping Tsai updated KAFKA-17506:
-----------------------------------
Labels: (was: flaky-test)
> KRaftMigrationDriver initialization race condition
> --------------------------------------------------
>
> Key: KAFKA-17506
> URL: https://issues.apache.org/jira/browse/KAFKA-17506
> Project: Kafka
> Issue Type: Bug
> Reporter: David Arthur
> Priority: Major
> Fix For: 3.9.0, 3.7.2, 3.8.1
>
>
> There is a race condition between KRaftMigrationDriver running its first
> poll() and being notified by Raft about a leader change. If
> {{onControllerChange}} is called before RecoverMigrationStateFromZKEvent is
> run, we will end up getting stuck in the INACTIVE state.
> This is likely a very narrow race condition that is not likely to be seen in
> practice. It was found when debugging a flaky integration test.
> If encountered, this can be worked around by restarting the stuck controller.
> Leadership will move to another controller which will allow the migration to
> be started.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)