Search in sources :

Example 1 with RSProcedureCallable

use of org.apache.hadoop.hbase.procedure2.RSProcedureCallable in project hbase by apache.

the class RSRpcServices method executeProcedures.

private void executeProcedures(RemoteProcedureRequest request) {
    RSProcedureCallable callable;
    try {
        callable = Class.forName(request.getProcClass()).asSubclass(RSProcedureCallable.class).getDeclaredConstructor().newInstance();
    } catch (Exception e) {
        LOG.warn("Failed to instantiating remote procedure {}, pid={}", request.getProcClass(), request.getProcId(), e);
        server.remoteProcedureComplete(request.getProcId(), e);
        return;
    }
    callable.init(request.getProcData().toByteArray(), server);
    LOG.debug("Executing remote procedure {}, pid={}", callable.getClass(), request.getProcId());
    server.executeProcedure(request.getProcId(), callable);
}
Also used : RSProcedureCallable(org.apache.hadoop.hbase.procedure2.RSProcedureCallable) FailedSanityCheckException(org.apache.hadoop.hbase.exceptions.FailedSanityCheckException) ResultOrException(org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ResultOrException) ScannerResetException(org.apache.hadoop.hbase.exceptions.ScannerResetException) OutOfOrderScannerNextException(org.apache.hadoop.hbase.exceptions.OutOfOrderScannerNextException) RegionTooBusyException(org.apache.hadoop.hbase.RegionTooBusyException) IOException(java.io.IOException) LeaseStillHeldException(org.apache.hadoop.hbase.regionserver.LeaseManager.LeaseStillHeldException) NotServingRegionException(org.apache.hadoop.hbase.NotServingRegionException) DoNotRetryIOException(org.apache.hadoop.hbase.DoNotRetryIOException) HBaseIOException(org.apache.hadoop.hbase.HBaseIOException) ServerNotRunningYetException(org.apache.hadoop.hbase.ipc.ServerNotRunningYetException) UnknownProtocolException(org.apache.hadoop.hbase.exceptions.UnknownProtocolException) ServiceException(org.apache.hbase.thirdparty.com.google.protobuf.ServiceException) UncheckedIOException(java.io.UncheckedIOException) UnknownScannerException(org.apache.hadoop.hbase.UnknownScannerException) FileNotFoundException(java.io.FileNotFoundException) BindException(java.net.BindException) DroppedSnapshotException(org.apache.hadoop.hbase.DroppedSnapshotException)

Aggregations

FileNotFoundException (java.io.FileNotFoundException)1 IOException (java.io.IOException)1 UncheckedIOException (java.io.UncheckedIOException)1 BindException (java.net.BindException)1 DoNotRetryIOException (org.apache.hadoop.hbase.DoNotRetryIOException)1 DroppedSnapshotException (org.apache.hadoop.hbase.DroppedSnapshotException)1 HBaseIOException (org.apache.hadoop.hbase.HBaseIOException)1 NotServingRegionException (org.apache.hadoop.hbase.NotServingRegionException)1 RegionTooBusyException (org.apache.hadoop.hbase.RegionTooBusyException)1 UnknownScannerException (org.apache.hadoop.hbase.UnknownScannerException)1 FailedSanityCheckException (org.apache.hadoop.hbase.exceptions.FailedSanityCheckException)1 OutOfOrderScannerNextException (org.apache.hadoop.hbase.exceptions.OutOfOrderScannerNextException)1 ScannerResetException (org.apache.hadoop.hbase.exceptions.ScannerResetException)1 UnknownProtocolException (org.apache.hadoop.hbase.exceptions.UnknownProtocolException)1 ServerNotRunningYetException (org.apache.hadoop.hbase.ipc.ServerNotRunningYetException)1 RSProcedureCallable (org.apache.hadoop.hbase.procedure2.RSProcedureCallable)1 LeaseStillHeldException (org.apache.hadoop.hbase.regionserver.LeaseManager.LeaseStillHeldException)1 ResultOrException (org.apache.hadoop.hbase.shaded.protobuf.generated.ClientProtos.ResultOrException)1 ServiceException (org.apache.hbase.thirdparty.com.google.protobuf.ServiceException)1