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

This commit is contained in:
Lars Hofhansl 2014-10-24 16:21:33 -07:00
parent 97acb9ef24
commit 6c7543c9c7
1 changed files with 3 additions and 1 deletions

View File

@ -1447,7 +1447,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);
}
}