mumrah opened a new pull request, #17147:
URL: https://github.com/apache/kafka/pull/17147

   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 patch fixes the race by enqueuing a RecoverMigrationStateFromZKEvent 
from onControllerChange if the drive has not yet initialized. If another 
RecoverMigrationStateFromZKEvent was already enqueued, the second one to run 
will just be ignored.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to