HBASE-26219 Negative time is logged while waiting on regionservers (#3622)

Signed-off-by: Wei-Chiu Chuang <weichiu@apache.org>
Signed-off-by: Peter Somogyi <psomogyi@apache.org>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
lpalasthy 2021-08-25 16:24:32 +02:00 committed by Peter Somogyi
parent 931a7a5a61
commit cd9e45ce8d
1 changed files with 3 additions and 2 deletions

View File

@ -820,8 +820,9 @@ public class ServerManager {
lastLogTime = now;
String msg =
"Waiting on regionserver count=" + count + "; waited="+
slept + "ms, expecting min=" + minToStart + " server(s), max="+ getStrForMax(maxToStart) +
" server(s), " + "timeout=" + timeout + "ms, lastChange=" + (lastCountChange - now) + "ms";
slept + "ms, expecting min=" + minToStart + " server(s), max="
+ getStrForMax(maxToStart) + " server(s), " + "timeout=" + timeout
+ "ms, lastChange=" + (now - lastCountChange) + "ms";
LOG.info(msg);
status.setStatus(msg);
}