accumulo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From e..@apache.org
Subject svn commit: r1468932 - /accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java
Date Wed, 17 Apr 2013 14:30:39 GMT
Author: ecn
Date: Wed Apr 17 14:30:39 2013
New Revision: 1468932

URL: http://svn.apache.org/r1468932
Log:
ACCUMULO-1199 translate security exceptions for a missing table into TableNotFound exceptions

Modified:
    accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java

Modified: accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java
URL: http://svn.apache.org/viewvc/accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java?rev=1468932&r1=1468931&r2=1468932&view=diff
==============================================================================
--- accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java
(original)
+++ accumulo/branches/1.5/core/src/main/java/org/apache/accumulo/core/client/admin/TableOperationsImpl.java
Wed Apr 17 14:30:39 2013
@@ -63,6 +63,7 @@ import org.apache.accumulo.core.client.i
 import org.apache.accumulo.core.client.impl.thrift.ClientService;
 import org.apache.accumulo.core.client.impl.thrift.ThriftSecurityException;
 import org.apache.accumulo.core.client.impl.thrift.ThriftTableOperationException;
+import org.apache.accumulo.core.client.security.SecurityErrorCode;
 import org.apache.accumulo.core.conf.AccumuloConfiguration;
 import org.apache.accumulo.core.conf.ConfigurationCopy;
 import org.apache.accumulo.core.conf.Property;
@@ -814,6 +815,9 @@ public class TableOperationsImpl extends
         }
       }
     } catch (ThriftSecurityException e) {
+      if (e.getCode().equals(SecurityErrorCode.TABLE_DOESNT_EXIST)) {
+        throw new TableNotFoundException(tableId, null, e.getMessage(), e);
+      }
       log.debug("flush security exception on table id " + tableId);
       throw new AccumuloSecurityException(e.user, e.code, e);
     } catch (ThriftTableOperationException e) {



Mime
View raw message