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-1044: Tables with non-hdfs locations breaks HMS startup ( Harsh J, Reviewed by: Sravya Tirukkovalur)
Date Tue, 02 Feb 2016 03:17:15 GMT
Repository: incubator-sentry
Updated Branches:
  refs/heads/master 6ed0a1701 -> 39d07318d


SENTRY-1044: Tables with non-hdfs locations breaks HMS startup ( Harsh J, Reviewed by: Sravya
Tirukkovalur)

Change-Id: I56233e434466b2c03e3a759cafda95c9d46a2e44


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

Branch: refs/heads/master
Commit: 39d07318d75511144498fdf585707806b0034211
Parents: 6ed0a17
Author: Sravya Tirukkovalur <sravya@cloudera.com>
Authored: Mon Feb 1 19:16:30 2016 -0800
Committer: Sravya Tirukkovalur <sravya@cloudera.com>
Committed: Mon Feb 1 19:16:30 2016 -0800

----------------------------------------------------------------------
 .../java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java   | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/39d07318/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java
----------------------------------------------------------------------
diff --git a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java
b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java
index cdf1c59..7a19594 100644
--- a/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java
+++ b/sentry-hdfs/sentry-hdfs-service/src/main/java/org/apache/sentry/hdfs/MetastoreCacheInitializer.java
@@ -204,7 +204,9 @@ class MetastoreCacheInitializer implements Closeable {
         if (tbl.getSd().getLocation() != null) {
           List<String> tblPath =
                   PathsUpdate.parsePath(tbl.getSd().getLocation());
-          tblPathChange.addToAddPaths(tblPath);
+          if (tblPath != null) {
+            tblPathChange.addToAddPaths(tblPath);
+          }
           List<String> tblPartNames =
                   hmsHandler.get_partition_names(db.getName(), tableName, (short) -1);
           for (int i = 0; i < tblPartNames.size(); i += maxPartitionsPerCall) {


Mime
View raw message