[ 
https://issues.apache.org/jira/browse/HBASE-20709?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Guanghao Zhang updated HBASE-20709:
-----------------------------------
    Environment: # 
    Description: 
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RSProcedureDispatcher.java
{code:java}
    @Override
    public void dispatchServerOperations(MasterProcedureEnv env, 
List<ServerOperation> operations) {
      throw new UnsupportedOperationException();
    }
{code}

As the procedure request not send to remote server, remoteOperationFailed and 
remoteOperationCompleted can't be called. So the procedure will stuck and no 
log to show this. The new patach will call remoteCallFailed method and make the 
procedure failed. It is easy to find problem by the new exception message.


  was:
hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RSProcedureDispatcher.java
{code:java}
    @Override
    public void dispatchServerOperations(MasterProcedureEnv env, 
List<ServerOperation> operations) {
      throw new UnsupportedOperationException();
    }
{code}



> CompatRemoteProcedureResolver should call remoteCallFailed method instead of 
> throw UnsupportedOperationException
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: HBASE-20709
>                 URL: https://issues.apache.org/jira/browse/HBASE-20709
>             Project: HBase
>          Issue Type: Bug
>    Affects Versions: 3.0.0, 2.1.0, 2.0.0
>         Environment: # 
>            Reporter: Guanghao Zhang
>            Assignee: Guanghao Zhang
>            Priority: Minor
>         Attachments: HBASE-20709.master.001.patch
>
>
> hbase-server/src/main/java/org/apache/hadoop/hbase/master/procedure/RSProcedureDispatcher.java
> {code:java}
>     @Override
>     public void dispatchServerOperations(MasterProcedureEnv env, 
> List<ServerOperation> operations) {
>       throw new UnsupportedOperationException();
>     }
> {code}
> As the procedure request not send to remote server, remoteOperationFailed and 
> remoteOperationCompleted can't be called. So the procedure will stuck and no 
> log to show this. The new patach will call remoteCallFailed method and make 
> the procedure failed. It is easy to find problem by the new exception message.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to