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 <[email protected]> Authored: Wed Jan 8 22:03:29 2014 -0500 Committer: Josh Elser <[email protected]> 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);
