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:
parent
410368b84e
commit
9e7b16b88e
|
@ -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) {
|
||||
|
|
Loading…
Reference in New Issue