From da74b8c8fba605123706a93b460817f047688d54 Mon Sep 17 00:00:00 2001 From: lpalasthy <80091316+lpalasthy@users.noreply.github.com> Date: Wed, 25 Aug 2021 16:24:32 +0200 Subject: [PATCH] HBASE-26219 Negative time is logged while waiting on regionservers (#3622) Signed-off-by: Wei-Chiu Chuang Signed-off-by: Peter Somogyi Signed-off-by: Duo Zhang --- .../java/org/apache/hadoop/hbase/master/ServerManager.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java index 6b9a0a566ed..b209c8a9694 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/ServerManager.java @@ -821,8 +821,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); }