Skip to content

Commit

Permalink
HBASE-26218 Add logs in Canary tool (#4501)
Browse files Browse the repository at this point in the history
Co-authored-by: Ishika Soni <isoni@isoni-ltmag9r.internal.salesforce.com>
Signed-off-by: Duo Zhang <zhangduo@apache.org>
(cherry picked from commit acfbc3f)
  • Loading branch information
251906 authored and Apache9 committed Jun 30, 2022
1 parent aaf6435 commit ba9aa5d
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ private void putUpWebUI() throws IOException {
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);
}
Expand All @@ -159,12 +160,14 @@ public int checkRegions(String[] targets) throws Exception {
@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);
}

Expand Down

0 comments on commit ba9aa5d

Please sign in to comment.