diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java index a967dab8175..4f59cf33284 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java @@ -492,7 +492,7 @@ public class CanaryTool implements Tool, Canary { sink.publishReadTiming(serverName, region, column, stopWatch.getTime()); } catch (Exception e) { sink.publishReadFailure(serverName, region, column, e); - sink.updateReadFailures(region == null? "NULL": region.getRegionNameAsString(), + sink.updateReadFailures(region.getRegionNameAsString(), serverName == null? "NULL": serverName.getHostname()); } finally { if (rs != null) {