[
https://issues.apache.org/jira/browse/KAFKA-15263?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
David Arthur updated KAFKA-15263:
---------------------------------
Affects Version/s: 3.5.1
3.5.0
> KRaftMigrationDriver can run the migration twice
> ------------------------------------------------
>
> Key: KAFKA-15263
> URL: https://issues.apache.org/jira/browse/KAFKA-15263
> Project: Kafka
> Issue Type: Bug
> Affects Versions: 3.5.0, 3.5.1
> Reporter: David Arthur
> Assignee: David Arthur
> Priority: Blocker
> Fix For: 3.6.0, 3.5.2
>
>
> There is a narrow race condition in KRaftMigrationDriver where a PollEvent
> can run that sees the internal state as ZK_MIGRATION and is immediately
> followed by another poll event (due to external call to {{{}wakeup(){}}})
> that results in two MigrateMetadataEvent being enqueued.
> Since MigrateMetadataEvent lacks a check on the internal state, this causes
> the metadata migration to occur twice.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)