accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From els...@apache.org
Subject [3/4] git commit: ACCUMULO--2134 Catch the case where we get the TNFE wrapped in an AccumuloException
Date Thu, 09 Jan 2014 03:05:03 GMT
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/1.6.0-SNAPSHOT
Commit: a55ee6ebc0bb807db400c0c1626823b80374d106
Parents: 5d57305
Author: Josh Elser <elserj@apache.org>
Authored: Wed Jan 8 22:03:29 2014 -0500
Committer: Josh Elser <elserj@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);


Mime
View raw message