hbase-server/src/main/java/org/apache/hadoop/hbase/master/MasterRpcServices.java
/**
   * Execute Delete Snapshot operation.
   * @return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
   *    deleted properly.
   * @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
   *    exist.
   */
Execute Delete Snapshot operation.
@return DeleteSnapshotResponse (a protobuf wrapped void) if the snapshot existed and was
deleted properly.
@throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not
exist.
Execute Delete Snapshot operation . @return DeleteSnapshotResponse ( a protobuf wrapped void ) if the snapshot existed and was deleted properly . @throws ServiceException wrapping SnapshotDoesNotExistException if specified snapshot did not exist .
@Override
  public DeleteSnapshotResponse deleteSnapshot(RpcController controller,
      DeleteSnapshotRequest request) throws ServiceException {
    try {
      master.checkInitialized();
      master.snapshotManager.checkSnapshotSupport();
      LOG.info(master.getClientIdAuditPrefix() + " delete " + request.getSnapshot());
      master.snapshotManager.deleteSnapshot(request.getSnapshot());
      return DeleteSnapshotResponse.newBuilder().build();
    } catch (IOException e) {
      throw new ServiceException(e);
    }
  }
@ Override public DeleteSnapshotResponse deleteSnapshot ( RpcController controller , DeleteSnapshotRequest request ) throws ServiceException { try { master . checkInitialized ( ) ; master . snapshotManager . checkSnapshotSupport ( ) ; LOG . info ( master . getClientIdAuditPrefix ( ) + " delete " + request . getSnapshot ( ) ) ; master . snapshotManager . deleteSnapshot ( request . getSnapshot ( ) ) ; return DeleteSnapshotResponse . newBuilder ( ) . build ( ) ; } catch ( IOException e ) { throw new ServiceException ( e ) ; } }
Execute Delete Snapshot operation.
Execute Delete Snapshot operation .