You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by ls...@apache.org on 2015/09/15 09:43:23 UTC

incubator-sentry git commit: SENTRY-886: HDFSIntegration test testAccessToTableDirectory should wait for cache refresh before verification (Sravya Tirukkovalur via Lenni Kuff)

Repository: incubator-sentry
Updated Branches:
  refs/heads/master c9e47c8ca -> 9ab8daaa7


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/9ab8daaa
Tree: http://git-wip-us.apache.org/repos/asf/incubator-sentry/tree/9ab8daaa
Diff: http://git-wip-us.apache.org/repos/asf/incubator-sentry/diff/9ab8daaa

Branch: refs/heads/master
Commit: 9ab8daaa7ea584e6616e5b8b88da92a55a056b98
Parents: c9e47c8
Author: Lenni Kuff <ls...@cloudera.com>
Authored: Tue Sep 15 00:42:48 2015 -0700
Committer: Lenni Kuff <ls...@cloudera.com>
Committed: Tue Sep 15 00:42:48 2015 -0700

----------------------------------------------------------------------
 .../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/9ab8daaa/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);