mumrah commented on code in PR #15238:
URL: https://github.com/apache/kafka/pull/15238#discussion_r1470254717


##########
metadata/src/main/java/org/apache/kafka/metadata/migration/KRaftMigrationDriver.java:
##########
@@ -635,12 +635,24 @@ class BecomeZkControllerEvent extends MigrationEvent {
         public void run() throws Exception {
             if (checkDriverState(MigrationDriverState.BECOME_CONTROLLER, 
this)) {
                 applyMigrationOperation("Claiming ZK controller leadership", 
zkMigrationClient::claimControllerLeadership);
-                if (migrationLeadershipState.zkControllerEpochZkVersion() == 
-1) {
+                if (migrationLeadershipState.zkControllerEpochZkVersion() == 
-2) {

Review Comment:
   There's already sort a constant in ZkMigrationLeadershipState.EMPTY



-- 
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: jira-unsubscr...@kafka.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to