You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by zh...@apache.org on 2022/06/30 15:37:54 UTC

[hbase] branch branch-2 updated: HBASE-26218 Add logs in Canary tool (#4501)

This is an automated email from the ASF dual-hosted git repository.

zhangduo pushed a commit to branch branch-2
in repository https://gitbox.apache.org/repos/asf/hbase.git


The following commit(s) were added to refs/heads/branch-2 by this push:
     new d2509d709b3 HBASE-26218 Add logs in Canary tool (#4501)
d2509d709b3 is described below

commit d2509d709b3e825e235e436cc5a07e35d24a45e5
Author: Ishika <38...@users.noreply.github.com>
AuthorDate: Thu Jun 30 19:23:20 2022 +0530

    HBASE-26218 Add logs in Canary tool (#4501)
    
    Co-authored-by: Ishika Soni <is...@isoni-ltmag9r.internal.salesforce.com>
    Signed-off-by: Duo Zhang <zh...@apache.org>
    (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);
   }