You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@accumulo.apache.org by el...@apache.org on 2014/01/09 04:05:02 UTC
[2/4] git commit: ACCUMULO--2134 Catch the case where we get the TNFE
wrapped in an AccumuloException
ACCUMULO--2134 Catch the case where we get the TNFE wrapped in an AccumuloException
Project: http://git-wip-us.apache.org/repos/asf/accumulo/repo
Commit: http://git-wip-us.apache.org/repos/asf/accumulo/commit/a55ee6eb
Tree: http://git-wip-us.apache.org/repos/asf/accumulo/tree/a55ee6eb
Diff: http://git-wip-us.apache.org/repos/asf/accumulo/diff/a55ee6eb
Branch: refs/heads/master
Commit: a55ee6ebc0bb807db400c0c1626823b80374d106
Parents: 5d57305
Author: Josh Elser <el...@apache.org>
Authored: Wed Jan 8 22:03:29 2014 -0500
Committer: Josh Elser <el...@apache.org>
Committed: Wed Jan 8 22:03:29 2014 -0500
----------------------------------------------------------------------
proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java | 4 ++++
1 file changed, 4 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/accumulo/blob/a55ee6eb/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
----------------------------------------------------------------------
diff --git a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
index 3413c94..de7ca80 100644
--- a/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
+++ b/proxy/src/main/java/org/apache/accumulo/proxy/ProxyServer.java
@@ -226,6 +226,10 @@ public class ProxyServer implements AccumuloProxy.Iface {
try {
throw ex;
} catch (AccumuloException e) {
+ Throwable cause = e.getCause();
+ if (null != cause && TableNotFoundException.class.equals(cause.getClass())) {
+ throw new org.apache.accumulo.proxy.thrift.TableNotFoundException(cause.toString());
+ }
handleAccumuloException(e);
} catch (AccumuloSecurityException e) {
handleAccumuloSecurityException(e);