hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mberto...@apache.org
Subject svn commit: r1546962 - /hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
Date Mon, 02 Dec 2013 11:09:32 GMT
Author: mbertozzi
Date: Mon Dec  2 11:09:31 2013
New Revision: 1546962

URL: http://svn.apache.org/r1546962
Log:
HBASE-9978 The client retries even if the method is not present on the server

Modified:
    hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java

Modified: hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
URL: http://svn.apache.org/viewvc/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java?rev=1546962&r1=1546961&r2=1546962&view=diff
==============================================================================
--- hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
(original)
+++ hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
Mon Dec  2 11:09:31 2013
@@ -1722,6 +1722,12 @@ public class RpcServer implements RpcSer
       } catch (Throwable t) {
         String msg = "Unable to read call parameter from client " + getHostAddress();
         LOG.warn(msg, t);
+
+        // If the method is not present on the server, do not retry.
+        if (t instanceof UnsupportedOperationException) {
+          t = new DoNotRetryIOException(t);
+        }
+
         final Call readParamsFailedCall =
           new Call(id, this.service, null, null, null, this,
             responder, totalRequestSize, null);



Mime
View raw message