throw new HBaseSnapshotException("Failed to delete snapshot directory: " + snapshotDir);
status = expected.getName() + " not found in proclist " + coordinator.getProcedureNames(); throw new HBaseSnapshotException("Snapshot " + ssString + " had an error. " + status, e, ProtobufUtil.createSnapshotDesc(expected));
+ snapshot.getName() + "'"; LOG.error(msg); throw new HBaseSnapshotException(msg);
+ snapshot.getName() + "'"; LOG.error(msg); throw new HBaseSnapshotException(msg);
/** * Delete the specified snapshot * @param snapshot * @throws SnapshotDoesNotExistException If the specified snapshot does not exist. * @throws IOException For filesystem IOExceptions */ public void deleteSnapshot(SnapshotDescription snapshot) throws SnapshotDoesNotExistException, IOException { // call coproc pre hook MasterCoprocessorHost cpHost = master.getCoprocessorHost(); if (cpHost != null) { cpHost.preDeleteSnapshot(snapshot); } // check to see if it is completed if (!isSnapshotCompleted(snapshot)) { throw new SnapshotDoesNotExistException(snapshot); } String snapshotName = snapshot.getName(); LOG.debug("Deleting snapshot: " + snapshotName); // first create the snapshot description and check to see if it exists MasterFileSystem fs = master.getMasterFileSystem(); Path snapshotDir = SnapshotDescriptionUtils.getCompletedSnapshotDir(snapshotName, rootDir); // delete the existing snapshot if (!fs.getFileSystem().delete(snapshotDir, true)) { throw new HBaseSnapshotException("Failed to delete snapshot directory: " + snapshotDir); } // call coproc post hook if (cpHost != null) { cpHost.postDeleteSnapshot(snapshot); } }
status = expected.getName() + " not found in proclist " + coordinator.getProcedureNames(); throw new HBaseSnapshotException("Snapshot " + ssString + " had an error. " + status, e, expected);
throw new HBaseSnapshotException("Failed to delete snapshot directory: " + snapshotDir);
+ snapshot.getName() + "'"; LOG.error(msg); throw new HBaseSnapshotException(msg);
status = expected.getName() + " not found in proclist " + coordinator.getProcedureNames(); throw new HBaseSnapshotException("Snapshot " + ssString + " had an error. " + status, e, expected);