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

KRaftMigrationDriver initialization race condition

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Blocker
    • Resolution: Fixed
    • 3.8.0, 3.7.1, 3.9.0
    • 3.9.0, 3.7.2, 3.8.1
    • None
    • None

    Description

      There is a race condition between KRaftMigrationDriver running its first poll() and being notified by Raft about a leader change. If onControllerChange is called before RecoverMigrationStateFromZKEvent is run, we will end up getting stuck in the INACTIVE state.

      This is likely a very narrow race condition that is not likely to be seen in practice. It was found when debugging a flaky integration test.

      If encountered, this can be worked around by restarting the stuck controller. Leadership will move to another controller which will allow the migration to be started.

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: