Description
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.
Attachments
Issue Links
- links to