throw new SnapshotDoesNotExistException(ProtobufUtil.createSnapshotDesc(snapshot));
throw new SnapshotDoesNotExistException( ProtobufUtil.createSnapshotDesc(reqSnapshot));
/** * 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); } }
throw new SnapshotDoesNotExistException(snapshot);
throw new SnapshotDoesNotExistException(reqSnapshot);
throw new SnapshotDoesNotExistException(reqSnapshot);