ranger-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mad...@apache.org
Subject [3/3] git commit: ARGUS-39: added handler for TableAlreadyException (hbase:acl) during init.
Date Tue, 16 Sep 2014 20:58:29 GMT
ARGUS-39: added handler for TableAlreadyException (hbase:acl) during
init.

Project: http://git-wip-us.apache.org/repos/asf/incubator-argus/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-argus/commit/26705298
Tree: http://git-wip-us.apache.org/repos/asf/incubator-argus/tree/26705298
Diff: http://git-wip-us.apache.org/repos/asf/incubator-argus/diff/26705298

Branch: refs/heads/master
Commit: 26705298bdbeadfc2357e5595e5c48bfbd214edf
Parents: 852ec25
Author: mneethiraj <mneethiraj@hortonworks.com>
Authored: Tue Sep 16 13:29:24 2014 -0700
Committer: mneethiraj <mneethiraj@hortonworks.com>
Committed: Tue Sep 16 13:29:24 2014 -0700

----------------------------------------------------------------------
 .../hadoop/hbase/security/access/XaAccessControlLists.java   | 8 +++++---
 1 file changed, 5 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-argus/blob/26705298/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java
----------------------------------------------------------------------
diff --git a/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java
b/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java
index 5c337bb..6dcb985 100644
--- a/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java
+++ b/hbase-agent/src/main/java/org/apache/hadoop/hbase/security/access/XaAccessControlLists.java
@@ -20,14 +20,16 @@ package org.apache.hadoop.hbase.security.access;
 
 import java.io.IOException;
 
-import org.apache.hadoop.hbase.catalog.MetaReader;
+import org.apache.hadoop.hbase.TableExistsException;
 import org.apache.hadoop.hbase.master.MasterServices;
 import org.apache.hadoop.hbase.security.access.AccessControlLists;
 
 public class XaAccessControlLists {
 	public static void init(MasterServices master) throws IOException {
-	    if (!MetaReader.tableExists(master.getCatalogTracker(), AccessControlLists.ACL_TABLE_NAME))
{
+		try {
 			AccessControlLists.init(master);
-	    }
+		} catch(TableExistsException excp) {
+			// ignore
+		}
 	}
 }


Mime
View raw message