HBASE-12692 NPE from SnapshotManager#stop (Ashish Singhi)

This commit is contained in:
Jonathan M Hsieh 2014-12-15 11:17:59 -08:00
parent afb753ecc3
commit 3a652ba41c
1 changed files with 3 additions and 1 deletions

View File

@ -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);
}