sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sra...@apache.org
Subject incubator-sentry git commit: SENTRY-555: Make Metastore sync time period configurable (Arun Suresh via Lenni Kuff and Sravya Tirukkovalur)
Date Mon, 01 Dec 2014 23:05:04 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master 5d2a0ce7f -> 437f6d96c


SENTRY-555: Make Metastore sync time period configurable (Arun Suresh via Lenni Kuff and Sravya
Tirukkovalur)


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

Branch: refs/heads/master
Commit: 437f6d96c3cfc6764668b56ef46f88c6e8f2ae80
Parents: 5d2a0ce
Author: Sravya Tirukkovalur <sravya@clouera.com>
Authored: Mon Dec 1 15:04:17 2014 -0800
Committer: Sravya Tirukkovalur <sravya@clouera.com>
Committed: Mon Dec 1 15:04:17 2014 -0800

----------------------------------------------------------------------
 .../src/main/java/org/apache/sentry/hdfs/ServiceConstants.java   | 2 ++
 .../src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java    | 4 +++-
 2 files changed, 5 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/437f6d96/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java
b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java
index 64cb943..9308dee 100644
--- a/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java
+++ b/sentry-hdfs/sentry-hdfs-common/src/main/java/org/apache/sentry/hdfs/ServiceConstants.java
@@ -45,6 +45,8 @@ public class ServiceConstants {
         new String[]{"/user/hive/warehouse"};
     public static final String SENTRY_HDFS_INIT_UPDATE_RETRY_DELAY_MS = "sentry.hdfs.init.update.retry.delay.ms";
     public static final int SENTRY_HDFS_INIT_UPDATE_RETRY_DELAY_DEFAULT = 10000;
+    public static final String SENTRY_HDFS_SYNC_CHECKER_PERIOD_MS = "sentry.hdfs.sync.checker.period.ms";
+    public static final int SENTRY_HDFS_SYNC_CHECKER_PERIOD_DEFAULT = 1000;
 
   }
   public static class ClientConfig {

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/437f6d96/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java
b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java
index b190d36..b8b8572 100644
--- a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java
+++ b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastorePlugin.java
@@ -129,7 +129,9 @@ public class MetastorePlugin extends SentryMetastoreListenerPlugin {
     ScheduledExecutorService threadPool = Executors.newScheduledThreadPool(1);
     threadPool.scheduleWithFixedDelay(new SyncTask(),
         this.conf.getLong(ServerConfig.SENTRY_HDFS_INIT_UPDATE_RETRY_DELAY_MS,
-            ServerConfig.SENTRY_HDFS_INIT_UPDATE_RETRY_DELAY_DEFAULT), 1000,
+            ServerConfig.SENTRY_HDFS_INIT_UPDATE_RETRY_DELAY_DEFAULT),
+        this.conf.getLong(ServerConfig.SENTRY_HDFS_SYNC_CHECKER_PERIOD_MS,
+            ServerConfig.SENTRY_HDFS_SYNC_CHECKER_PERIOD_DEFAULT),
         TimeUnit.MILLISECONDS);
     this.threadPool = threadPool;
   }


Mime
View raw message