From 735bcf85e9b59a71981babe2f5da51978d61d8d3 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 a932ac60376..e9b109859bc 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 @@ -798,8 +798,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); }