[TD-4682]<fix>: not move vnode to new dnode within 2 seconds

This commit is contained in:
Minglei Jin 2021-06-15 15:47:38 +08:00
parent 49c70a8489
commit 5c8bd7a3a4
1 changed files with 1 additions and 0 deletions

View File

@ -367,6 +367,7 @@ static bool bnMonitorBalance() {
for (int32_t dest = 0; dest < src; dest++) {
SDnodeObj *pDestDnode = tsBnDnodes.list[dest];
if (bnCheckDnodeInVgroup(pDestDnode, pVgroup)) continue;
if (taosGetTimestampMs() - pDestDnode->createdTime < 2000) continue;
float destScore = bnTryCalcDnodeScore(pDestDnode, 1);
if (srcScore + 0.0001 < destScore) continue;