[chore](log) add cluster and tag message to exception (#12287)
This commit is contained in:
@ -205,7 +205,8 @@ public class BeLoadRebalancer extends Rebalancer {
|
||||
Map<Long, PathSlot> backendsWorkingSlots) throws SchedException {
|
||||
ClusterLoadStatistic clusterStat = statisticMap.get(tabletCtx.getCluster(), tabletCtx.getTag());
|
||||
if (clusterStat == null) {
|
||||
throw new SchedException(Status.UNRECOVERABLE, "cluster does not exist");
|
||||
throw new SchedException(Status.UNRECOVERABLE,
|
||||
String.format("cluster %s for tag %s does not exist", tabletCtx.getCluster(), tabletCtx.getTag()));
|
||||
}
|
||||
|
||||
// get classification of backends
|
||||
|
||||
@ -250,7 +250,8 @@ public class DiskRebalancer extends Rebalancer {
|
||||
Map<Long, PathSlot> backendsWorkingSlots) throws SchedException {
|
||||
ClusterLoadStatistic clusterStat = statisticMap.get(tabletCtx.getCluster(), tabletCtx.getTag());
|
||||
if (clusterStat == null) {
|
||||
throw new SchedException(Status.UNRECOVERABLE, "cluster does not exist");
|
||||
throw new SchedException(Status.UNRECOVERABLE,
|
||||
String.format("cluster %s for tag %s does not exist", tabletCtx.getCluster(), tabletCtx.getTag()));
|
||||
}
|
||||
if (tabletCtx.getTempSrcBackendId() == -1 || tabletCtx.getTempSrcPathHash() == -1) {
|
||||
throw new SchedException(Status.UNRECOVERABLE,
|
||||
|
||||
@ -1283,7 +1283,8 @@ public class TabletScheduler extends MasterDaemon {
|
||||
Preconditions.checkState(!forColocate);
|
||||
ClusterLoadStatistic statistic = statisticMap.get(tabletCtx.getCluster(), tag);
|
||||
if (statistic == null) {
|
||||
throw new SchedException(Status.UNRECOVERABLE, "cluster does not exist");
|
||||
throw new SchedException(Status.UNRECOVERABLE,
|
||||
String.format("cluster %s for tag %s does not exist.", tabletCtx.getCluster(), tag));
|
||||
}
|
||||
beStatistics = statistic.getSortedBeLoadStats(null /* sorted ignore medium */);
|
||||
} else {
|
||||
|
||||
Reference in New Issue
Block a user