David Arthur created KAFKA-15263:
------------------------------------

             Summary: KRaftMigrationDriver can run the migration twice
                 Key: KAFKA-15263
                 URL: https://issues.apache.org/jira/browse/KAFKA-15263
             Project: Kafka
          Issue Type: Bug
            Reporter: David Arthur
            Assignee: David Arthur


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)

Reply via email to