Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-15263

KRaftMigrationDriver can run the migration twice

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.5.0, 3.5.1
    • 3.6.0, 3.5.2
    • None
    • None

    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

          Activity

            People

              davidarthur David Arthur
              davidarthur David Arthur
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: