Details
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
- links to