hbase-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From la...@apache.org
Subject git commit: HBASE-12334 Handling of DeserializationException causes needless retry on failure.
Date Fri, 24 Oct 2014 23:23:13 GMT
Repository: hbase
Updated Branches:
  refs/heads/0.98 046c4ce62 -> 714e8368c


HBASE-12334 Handling of DeserializationException causes needless retry on failure.


Project: http://git-wip-us.apache.org/repos/asf/hbase/repo
Commit: http://git-wip-us.apache.org/repos/asf/hbase/commit/714e8368
Tree: http://git-wip-us.apache.org/repos/asf/hbase/tree/714e8368
Diff: http://git-wip-us.apache.org/repos/asf/hbase/diff/714e8368

Branch: refs/heads/0.98
Commit: 714e8368c33aab14dcc461180cff14fe65d9cdd3
Parents: 046c4ce
Author: Lars Hofhansl <larsh@apache.org>
Authored: Fri Oct 24 16:21:33 2014 -0700
Committer: Lars Hofhansl <larsh@apache.org>
Committed: Fri Oct 24 16:22:33 2014 -0700

----------------------------------------------------------------------
 .../main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/hbase/blob/714e8368/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
----------------------------------------------------------------------
diff --git a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
index 41deff6..1d7a8ad 100644
--- a/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
+++ b/hbase-client/src/main/java/org/apache/hadoop/hbase/protobuf/ProtobufUtil.java
@@ -1376,7 +1376,9 @@ public final class ProtobufUtil {
       }
       return (Filter)parseFrom.invoke(c, value);
     } catch (Exception e) {
-      throw new IOException(e);
+      // Either we couldn't instantiate the method object, or "parseFrom" failed.
+      // In either case, let's not retry.
+      throw new DoNotRetryIOException(e);
     }
   }
 


Mime
View raw message