From b2943504b867e7b26e7c6433f026a602ef42a0ab Mon Sep 17 00:00:00 2001 From: Pankaj Kumar Date: Thu, 28 Sep 2017 20:41:28 +0800 Subject: [PATCH] HBASE-18890, Backport HBASE-14499 (Master coprocessors shutdown will not happen on master abort) to branch-1 Signed-off-by: tedyu --- .../main/java/org/apache/hadoop/hbase/master/HMaster.java | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java index 136c7d443b9..29307c98ded 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/HMaster.java @@ -2551,7 +2551,12 @@ public class HMaster extends HRegionServer implements MasterServices, Server { getLoadedCoprocessors()); } if (t != null) LOG.fatal(msg, t); - stop(msg); + + try { + stopMaster(); + } catch (IOException e) { + LOG.error("Exception occurred while stopping master", e); + } } @Override