[fix](tablet clone) fix partition rebalance apply move exception (#23222)

This commit is contained in:
yujun
2023-08-23 21:50:50 +08:00
committed by GitHub
parent 156f7b7699
commit f0bc2c2eff

View File

@ -288,8 +288,13 @@ public class TwoDimensionalGreedyRebalanceAlgo {
*/
public static boolean applyMove(PartitionMove move, TreeMultimap<Long, Long> beByTotalReplicaCount,
TreeMultimap<Long, PartitionBalanceInfo> skewMap) {
// Update the total counts
moveOneReplica(move.fromBe, move.toBe, beByTotalReplicaCount);
try {
// Update the total counts
moveOneReplica(move.fromBe, move.toBe, beByTotalReplicaCount);
} catch (IllegalStateException e) {
LOG.info("{} apply failed, {}", move, e.getMessage());
return false;
}
try {
PartitionBalanceInfo partitionBalanceInfo = null;