sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s..@apache.org
Subject [10/25] incubator-sentry git commit: SENTRY-886: HDFSIntegration test testAccessToTableDirectory should wait for cache refresh before verification (Sravya Tirukkovalur via Lenni Kuff)
Date Thu, 05 Nov 2015 01:44:38 GMT
SENTRY-886: HDFSIntegration test testAccessToTableDirectory should wait for cache refresh before
verification (Sravya Tirukkovalur via Lenni Kuff)


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

Branch: refs/heads/hive_plugin_v2
Commit: 2bbeaa374bacc88594c62b2978bb2b7a8ba13467
Parents: b886850
Author: Lenni Kuff <lskuff@cloudera.com>
Authored: Tue Sep 15 00:42:48 2015 -0700
Committer: Sun Dapeng <sdp@apache.org>
Committed: Mon Nov 2 16:36:22 2015 +0800

----------------------------------------------------------------------
 .../java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/2bbeaa37/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
index 944096b..5e29d65 100644
--- a/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
+++ b/sentry-tests/sentry-tests-hive/src/test/java/org/apache/sentry/tests/e2e/hdfs/TestHDFSIntegration.java
@@ -1092,7 +1092,7 @@ public class TestHDFSIntegration {
     stmt.execute("create role table_role");
     stmt.execute("grant all on table tb1 to role table_role");
     stmt.execute("grant role table_role to group " + StaticUserGroup.USERGROUP1);
-
+    Thread.sleep(CACHE_REFRESH);//Wait till sentry cache is updated in Namenode
     //Verify user1 is able to access table directory
     verifyAccessToPath(StaticUserGroup.USER1_1, StaticUserGroup.USERGROUP1, "/user/hive/warehouse/db1.db/tb1",
true);
 


Mime
View raw message