[improvement](tablet clone) add config for decommission tablet wait time (#26000)

This commit is contained in:
yujun
2023-10-31 20:36:26 +08:00
committed by GitHub
parent 08c78a1135
commit ac7678926f
2 changed files with 10 additions and 1 deletions

View File

@ -305,7 +305,7 @@ public class TabletSchedCtx implements Comparable<TabletSchedCtx> {
if (decommissionTime < 0) {
decommissionTime = System.currentTimeMillis();
}
return System.currentTimeMillis() > decommissionTime + 10 * 60 * 1000L;
return System.currentTimeMillis() > decommissionTime + Config.decommission_tablet_wait_time_seconds * 1000L;
} else {
decommissionTime = -1;
if (code == SubCode.WAITING_SLOT && type != Type.BALANCE) {