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>
(cherry picked from commit acfbc3ff7d
)
This commit is contained in:
parent
cdc4e892ee
commit
a9e346fba7
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue