Search in sources :

Example 1 with AbortProcedureResponse

use of org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureResponse in project hbase by apache.

the class MasterRpcServices method abortProcedure.

@Override
public AbortProcedureResponse abortProcedure(RpcController rpcController, AbortProcedureRequest request) throws ServiceException {
    try {
        AbortProcedureResponse.Builder response = AbortProcedureResponse.newBuilder();
        boolean abortResult = server.abortProcedure(request.getProcId(), request.getMayInterruptIfRunning());
        response.setIsProcedureAborted(abortResult);
        return response.build();
    } catch (IOException e) {
        throw new ServiceException(e);
    }
}
Also used : ServiceException(org.apache.hbase.thirdparty.com.google.protobuf.ServiceException) AbortProcedureResponse(org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureResponse) IOException(java.io.IOException) DoNotRetryIOException(org.apache.hadoop.hbase.DoNotRetryIOException)

Aggregations

IOException (java.io.IOException)1 DoNotRetryIOException (org.apache.hadoop.hbase.DoNotRetryIOException)1 AbortProcedureResponse (org.apache.hadoop.hbase.shaded.protobuf.generated.MasterProtos.AbortProcedureResponse)1 ServiceException (org.apache.hbase.thirdparty.com.google.protobuf.ServiceException)1