You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "David Arthur (Jira)" <ji...@apache.org> on 2023/07/28 18:40:00 UTC

[jira] [Resolved] (KAFKA-15263) KRaftMigrationDriver can run the migration twice

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

David Arthur resolved KAFKA-15263.
----------------------------------
    Resolution: Fixed

> 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)