From a9e346fba70fea0133c8bd5119d82a2cca1eb018 Mon Sep 17 00:00:00 2001 From: Ishika <38300224+251906@users.noreply.github.com> Date: Thu, 30 Jun 2022 19:23:20 +0530 Subject: [PATCH] HBASE-26218 Add logs in Canary tool (#4501) Co-authored-by: Ishika Soni Signed-off-by: Duo Zhang (cherry picked from commit acfbc3ff7dacd706fabe1eb586a7c64019d27328) --- .../src/main/java/org/apache/hadoop/hbase/tool/CanaryTool.java | 3 +++ 1 file changed, 3 insertions(+) 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 f1aba97cc05..d3804b31bff 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 @@ -146,6 +146,7 @@ public class CanaryTool implements Tool, Canary { public int checkRegions(String[] targets) throws Exception { String configuredReadTableTimeoutsStr = conf.get(HBASE_CANARY_REGION_READ_TABLE_TIMEOUT); try { + LOG.info("Canary tool is running in Region mode"); if (configuredReadTableTimeoutsStr != null) { populateReadTableTimeoutsMap(configuredReadTableTimeoutsStr); } @@ -159,12 +160,14 @@ public class CanaryTool implements Tool, Canary { @Override public int checkRegionServers(String[] targets) throws Exception { regionServerMode = true; + LOG.info("Canary tool is running in RegionServer mode"); return runMonitor(targets); } @Override public int checkZooKeeper() throws Exception { zookeeperMode = true; + LOG.info("Canary tool is running in ZooKeeper mode"); return runMonitor(null); }