HBASE-23244 NPEs running Canary (#784)
Addendum to fix findbugs complaint.
This commit is contained in:
parent
c58e80fbe6
commit
3ccfd50bd9
|
@ -492,7 +492,7 @@ public class CanaryTool implements Tool, Canary {
|
|||
sink.publishReadTiming(serverName, region, column, stopWatch.getTime());
|
||||
} catch (Exception e) {
|
||||
sink.publishReadFailure(serverName, region, column, e);
|
||||
sink.updateReadFailures(region == null? "NULL": region.getRegionNameAsString(),
|
||||
sink.updateReadFailures(region.getRegionNameAsString(),
|
||||
serverName == null? "NULL": serverName.getHostname());
|
||||
} finally {
|
||||
if (rs != null) {
|
||||
|
|
Loading…
Reference in New Issue