You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by ak...@apache.org on 2017/08/24 02:44:06 UTC

sentry git commit: SENTRY-1898: Sentry no longer supports creating more than ~15 partitions at once (Na Li, reviewed by ALex Kolbasov)

Repository: sentry
Updated Branches:
  refs/heads/master 201808de0 -> c659a3e68


SENTRY-1898: Sentry no longer supports creating more than ~15 partitions at once (Na Li, reviewed by ALex Kolbasov)


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

Branch: refs/heads/master
Commit: c659a3e684df6ef8020be0da77d70429245aa368
Parents: 201808d
Author: Alexander Kolbasov <ak...@gmail.com>
Authored: Wed Aug 23 19:43:49 2017 -0700
Committer: Alexander Kolbasov <ak...@gmail.com>
Committed: Wed Aug 23 19:43:49 2017 -0700

----------------------------------------------------------------------
 .../java/org/apache/sentry/provider/db/service/model/package.jdo   | 2 +-
 .../src/main/resources/008-SENTRY-1569.derby.sql                   | 2 +-
 .../src/main/resources/008-SENTRY-1569.mysql.sql                   | 2 +-
 .../src/main/resources/008-SENTRY-1569.oracle.sql                  | 2 +-
 .../src/main/resources/008-SENTRY-1569.postgres.sql                | 2 +-
 .../sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql     | 2 +-
 .../sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql   | 2 +-
 .../sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql   | 2 +-
 .../sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql  | 2 +-
 .../src/main/resources/sentry-postgres-2.0.0.sql                   | 2 +-
 .../src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql       | 2 +-
 11 files changed, 11 insertions(+), 11 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo
index 77ec491..734ea7f 100644
--- a/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo
+++ b/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/service/model/package.jdo
@@ -299,7 +299,7 @@
          <column name="NOTIFICATION_ID" jdbc-type="BIGINT" allows-null="false"/>
        </field>
        <field name ="pathChange">
-         <column name="PATH_CHANGE" length="4000" jdbc-type="VARCHAR" allows-null="false"/>
+         <column name="PATH_CHANGE" jdbc-type="LONGVARCHAR" allows-null="false"/>
        </field>
        <field name="createTimeMs">
          <column name="CREATE_TIME_MS" jdbc-type="BIGINT"/>

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.derby.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.derby.sql b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.derby.sql
index 4afa2e0..019b040 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.derby.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.derby.sql
@@ -14,7 +14,7 @@ CREATE TABLE SENTRY_PATH_CHANGE
     CHANGE_ID BIGINT NOT NULL,
     NOTIFICATION_ID BIGINT NOT NULL,
     CREATE_TIME_MS BIGINT NOT NULL,
-    PATH_CHANGE VARCHAR(4000) NOT NULL
+    PATH_CHANGE CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.mysql.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.mysql.sql b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.mysql.sql
index 8636fec..a0223dc 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.mysql.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.mysql.sql
@@ -13,7 +13,7 @@ CREATE TABLE `SENTRY_PATH_CHANGE`
     `CHANGE_ID` BIGINT NOT NULL,
     `NOTIFICATION_ID` BIGINT NOT NULL,
     `CREATE_TIME_MS` BIGINT NOT NULL,
-    `PATH_CHANGE` VARCHAR(4000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
+    `PATH_CHANGE` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
     CONSTRAINT `SENTRY_PATH_CHANGE_PK` PRIMARY KEY (`CHANGE_ID`)
 ) ENGINE=INNODB;
 

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.oracle.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.oracle.sql b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.oracle.sql
index c3c374b..733cebf 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.oracle.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.oracle.sql
@@ -14,7 +14,7 @@ CREATE TABLE "SENTRY_PATH_CHANGE"
     "CHANGE_ID" NUMBER NOT NULL,
     "NOTIFICATION_ID" NUMBER NOT NULL,
     "CREATE_TIME_MS" NUMBER NOT NULL,
-    "PATH_CHANGE" VARCHAR2(4000) NOT NULL
+    "PATH_CHANGE" CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.postgres.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.postgres.sql b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.postgres.sql
index d168bf5..cd7afd4 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.postgres.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/008-SENTRY-1569.postgres.sql
@@ -13,7 +13,7 @@ CREATE TABLE "SENTRY_PATH_CHANGE"
     "CHANGE_ID" bigint NOT NULL,
     "NOTIFICATION_ID" bigint NOT NULL,
     "CREATE_TIME_MS" bigint NOT NULL,
-    "PATH_CHANGE" VARCHAR(4000) NOT NULL,
+    "PATH_CHANGE" text NOT NULL,
     CONSTRAINT "SENTRY_PATH_CHANGE_PK" PRIMARY KEY ("CHANGE_ID")
 );
 

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql
index 69ef5b7..44124c6 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-db2-2.0.0.sql
@@ -236,7 +236,7 @@ CREATE TABLE SENTRY_PATH_CHANGE
     CHANGE_ID bigint NOT NULL,
     NOTIFICATION_ID bigint NOT NULL,
     CREATE_TIME_MS bigint NOT NULL,
-    PATH_CHANGE VARCHAR(4000) NOT NULL
+    PATH_CHANGE CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql
index 0db7ba9..3a7b46e 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-derby-2.0.0.sql
@@ -236,7 +236,7 @@ CREATE TABLE SENTRY_PATH_CHANGE
     CHANGE_ID BIGINT NOT NULL,
     NOTIFICATION_ID BIGINT NOT NULL,
     CREATE_TIME_MS BIGINT NOT NULL,
-    PATH_CHANGE VARCHAR(4000) NOT NULL
+    PATH_CHANGE CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql
index 183481a..7475a5d 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-2.0.0.sql
@@ -271,7 +271,7 @@ CREATE TABLE `SENTRY_PATH_CHANGE`
     `CHANGE_ID` BIGINT NOT NULL,
     `NOTIFICATION_ID` BIGINT NOT NULL,
     `CREATE_TIME_MS` BIGINT NOT NULL,
-    `PATH_CHANGE` VARCHAR(4000) CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
+    `PATH_CHANGE` longtext CHARACTER SET utf8 COLLATE utf8_bin NOT NULL,
     CONSTRAINT `SENTRY_PATH_CHANGE_PK` PRIMARY KEY (`CHANGE_ID`)
 ) ENGINE=INNODB;
 

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql
index cf4f0ed..20c4cd9 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-oracle-2.0.0.sql
@@ -252,7 +252,7 @@ CREATE TABLE "SENTRY_PATH_CHANGE"
     "CHANGE_ID" NUMBER NOT NULL,
     "NOTIFICATION_ID" NUMBER NOT NULL,
     "CREATE_TIME_MS" NUMBER NOT NULL,
-    "PATH_CHANGE" VARCHAR2(4000) NOT NULL
+    "PATH_CHANGE" CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-postgres-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-postgres-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-postgres-2.0.0.sql
index 5974ed9..794ff17 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-postgres-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-postgres-2.0.0.sql
@@ -259,7 +259,7 @@ CREATE TABLE "SENTRY_PATH_CHANGE"
     "CHANGE_ID" bigint NOT NULL,
     "NOTIFICATION_ID" bigint NOT NULL,
     "CREATE_TIME_MS" bigint NOT NULL,
-    "PATH_CHANGE" VARCHAR(4000) NOT NULL,
+    "PATH_CHANGE" text NOT NULL,
     CONSTRAINT "SENTRY_PATH_CHANGE_PK" PRIMARY KEY ("CHANGE_ID")
 );
 

http://git-wip-us.apache.org/repos/asf/sentry/blob/c659a3e6/sentry-provider/sentry-provider-db/src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql
index 20c50b7..065921e 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-upgrade-db2-1.7.0-to-2.0.0.sql
@@ -83,7 +83,7 @@ CREATE TABLE SENTRY_PATH_CHANGE
     CHANGE_ID bigint NOT NULL,
     NOTIFICATION_ID bigint NOT NULL,
     CREATE_TIME_MS bigint NOT NULL,
-    PATH_CHANGE VARCHAR(4000) NOT NULL
+    PATH_CHANGE CLOB NOT NULL
 );
 
 -- Constraints for table SENTRY_PATH_CHANGE for class [org.apache.sentry.provider.db.service.model.MSentryPathChange]