You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@hbase.apache.org by mb...@apache.org on 2013/12/02 12:09:32 UTC
svn commit: r1546962 -
/hbase/branches/0.96/hbase-server/src/main/java/org/apache/hadoop/hbase/ipc/RpcServer.java
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);