HBASE-27391 Downgrade ERROR log to DEBUG in ConnectionUtils.updateStats (#4804)

Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Bryan Beaudreault 2022-09-28 11:31:39 -04:00 committed by GitHub
parent 748cad655c
commit 23a56331db
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 2 deletions

View File

@ -579,8 +579,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);