From f76716b801d67a6951631967c13297d24cdeb6e1 Mon Sep 17 00:00:00 2001 From: Bryan Beaudreault Date: Wed, 28 Sep 2022 11:31:39 -0400 Subject: [PATCH] HBASE-27391 Downgrade ERROR log to DEBUG in ConnectionUtils.updateStats (#4804) Signed-off-by: Duo Zhang --- .../org/apache/hadoop/hbase/client/ConnectionUtils.java | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java index 0cbe0ca59fa..d85b4399aff 100644 --- a/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java +++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/client/ConnectionUtils.java @@ -624,8 +624,10 @@ public final class ConnectionUtils { resp.getResults().forEach((regionName, regionResult) -> { ClientProtos.RegionLoadStats stat = regionResult.getStat(); if (stat == null) { - LOG.error("No ClientProtos.RegionLoadStats found for server={}, region={}", serverName, - Bytes.toStringBinary(regionName)); + if (LOG.isDebugEnabled()) { + LOG.debug("No ClientProtos.RegionLoadStats found for server={}, region={}", serverName, + Bytes.toStringBinary(regionName)); + } return; } RegionLoadStats regionLoadStats = ProtobufUtil.createRegionLoadStats(stat);