sentry-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ak...@apache.org
Subject sentry git commit: SENTRY-1927: PathImageRetriever should minimize size of the serialized message when creating path (Arjun Mishra, reviewed by Vamsee Yarlagadda and Mat Crocker)
Date Wed, 06 Sep 2017 21:30:19 GMT
Repository: sentry
Updated Branches:
  refs/heads/master fab09a73b -> d02c48754


SENTRY-1927: PathImageRetriever should minimize size of the serialized message when creating
path (Arjun Mishra, reviewed by Vamsee Yarlagadda and Mat Crocker)


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

Branch: refs/heads/master
Commit: d02c48754e843a13f88b0db4eb89deca8b91b2c5
Parents: fab09a7
Author: Alexander Kolbasov <akolb1@gmail.com>
Authored: Wed Sep 6 14:30:05 2017 -0700
Committer: Alexander Kolbasov <akolb1@gmail.com>
Committed: Wed Sep 6 14:30:05 2017 -0700

----------------------------------------------------------------------
 .../src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/d02c4875/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java
b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java
index 1762ee5..b386207 100644
--- a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java
+++ b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/PathImageRetriever.java
@@ -92,8 +92,8 @@ class PathImageRetriever implements ImageRetriever<PathsUpdate> {
       UpdateableAuthzPaths authzPaths = new UpdateableAuthzPaths(prefixes);
       authzPaths.updatePartial(Lists.newArrayList(pathsUpdate),
           new ReentrantReadWriteLock());
-      //Setting minimizeSize parameter to false based on interface description
-      pathsUpdate.toThrift().setPathsDump(authzPaths.getPathsDump().createPathsDump(false));
+      //Setting minimizeSize parameter to true to try to minimize the size of the serialized
message
+      pathsUpdate.toThrift().setPathsDump(authzPaths.getPathsDump().createPathsDump(true));
       return pathsUpdate;
     }
   }


Mime
View raw message