HBASE-18874, HMaster abort message will be skipped if Throwable is passed null

Signed-off-by: tedyu <yuzhihong@gmail.com>
This commit is contained in:
Pankaj Kumar 2017-09-26 20:01:06 +08:00 committed by tedyu
parent 410368b84e
commit 9e7b16b88e
1 changed files with 6 additions and 1 deletions

View File

@ -2634,7 +2634,12 @@ public class HMaster extends HRegionServer implements MasterServices {
LOG.fatal("Master server abort: loaded coprocessors are: " +
getLoadedCoprocessors());
}
if (t != null) LOG.fatal(msg, t);
if (t != null) {
LOG.fatal(msg, t);
} else {
LOG.fatal(msg);
}
try {
stopMaster();
} catch (IOException e) {