HBASE-26218 Add logs in Canary tool (#4501)

Co-authored-by: Ishika Soni <isoni@isoni-ltmag9r.internal.salesforce.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
This commit is contained in:
Ishika 2022-06-30 19:23:20 +05:30 committed by GitHub
parent c07c393565
commit acfbc3ff7d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 3 additions and 0 deletions

View File

@ -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);
}