diff --git a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java index d2e11a22e06..b7a891d01ba 100644 --- a/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java +++ b/hbase-server/src/main/java/org/apache/hadoop/hbase/master/snapshot/SnapshotManager.java @@ -927,7 +927,9 @@ public class SnapshotManager extends MasterProcedureManager implements Stoppable restoreHandler.cancel(why); } try { - coordinator.close(); + if (coordinator != null) { + coordinator.close(); + } } catch (IOException e) { LOG.error("stop ProcedureCoordinator error", e); }