Skip to content

Commit

Permalink
[server] Remove storage partitions not assigned to current host. Drop…
Browse files Browse the repository at this point in the history
… storage engine if all partitions have been dropped and when idealState is null.
  • Loading branch information
kristyelee committed Nov 17, 2024
1 parent bbb7873 commit 082c11c
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -404,7 +404,9 @@ public synchronized void checkWhetherStoragePartitionsShouldBeKeptOrNot(SafeHeli
removeStorageEngine(storeName);
}
} else {
removeStorageEngine(storeName);
if (storageEngine.getPartitionIds().isEmpty()) {
removeStorageEngine(storeName);
}
}
}
}
Expand Down

0 comments on commit 082c11c

Please sign in to comment.