Skip to content

Commit

Permalink
Handle another init race
Browse files Browse the repository at this point in the history
  • Loading branch information
mumrah committed Sep 10, 2024
1 parent 4181969 commit 8790626
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -522,7 +522,7 @@ public void run() throws Exception {
KRaftMigrationDriver.this.image = image;
String metadataType = isSnapshot ? "snapshot" : "delta";

if (migrationState.equals(MigrationDriverState.INACTIVE)) {
if (EnumSet.of(MigrationDriverState.UNINITIALIZED, MigrationDriverState.INACTIVE).contains(migrationState)) {
// No need to log anything if this node is not the active controller
completionHandler.accept(null);
return;
Expand Down

0 comments on commit 8790626

Please sign in to comment.