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 13:53:30 UTC
[hbase] branch master 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 master
in repository https://gitbox.apache.org/repos/asf/hbase.git
The following commit(s) were added to refs/heads/master by this push:
new acfbc3ff7da HBASE-26218 Add logs in Canary tool (#4501)
acfbc3ff7da is described below
commit acfbc3ff7dacd706fabe1eb586a7c64019d27328
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>
---
.../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 79f7f3d319a..ed7f474106c 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);
}