You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by pr...@apache.org on 2014/06/18 03:18:46 UTC

git commit: SENTRY-304: Limit on index key in MYSQL (innoDB ) is 767 bytes (Sravya Tirukkovalur via Prasad Mujumdar)

Repository: incubator-sentry
Updated Branches:
  refs/heads/master 282b79dd7 -> c248a3dc1


SENTRY-304: Limit on index key in MYSQL (innoDB ) is 767 bytes (Sravya Tirukkovalur via Prasad Mujumdar)


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

Branch: refs/heads/master
Commit: c248a3dc10ebda552f5e10ca9173b3e9fd11a1a2
Parents: 282b79d
Author: Prasad Mujumdar <pr...@cloudera.com>
Authored: Tue Jun 17 18:18:36 2014 -0700
Committer: Prasad Mujumdar <pr...@cloudera.com>
Committed: Tue Jun 17 18:18:36 2014 -0700

----------------------------------------------------------------------
 .../sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql   | 2 +-
 sentry-tests/sentry-tests-hive/pom.xml                             | 1 +
 2 files changed, 2 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c248a3dc/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql
----------------------------------------------------------------------
diff --git a/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql b/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql
index 2dcb4f2..70f4dbb 100644
--- a/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql
+++ b/sentry-provider/sentry-provider-db/src/main/resources/sentry-mysql-1.4.0.sql
@@ -81,7 +81,7 @@ ALTER TABLE `SENTRY_VERSION`
   ADD CONSTRAINT `SENTRY_VERSION` PRIMARY KEY (`VER_ID`);
 
 ALTER TABLE `SENTRY_DB_PRIVILEGE`
-  ADD CONSTRAINT `SENTRY_DB_PRIV_PRIV_NAME_UNIQ` UNIQUE (`PRIVILEGE_NAME`);
+  ADD INDEX `SENTRY_DB_PRIV_PRIV_NAME_UNIQ` (`PRIVILEGE_NAME`(250));
 
 ALTER TABLE `SENTRY_DB_PRIVILEGE`
   ADD INDEX `SENTRY_PRIV_SERV_IDX` (`SERVER_NAME`);

http://git-wip-us.apache.org/repos/asf/incubator-sentry/blob/c248a3dc/sentry-tests/sentry-tests-hive/pom.xml
----------------------------------------------------------------------
diff --git a/sentry-tests/sentry-tests-hive/pom.xml b/sentry-tests/sentry-tests-hive/pom.xml
index 96ff006..d66627f 100644
--- a/sentry-tests/sentry-tests-hive/pom.xml
+++ b/sentry-tests/sentry-tests-hive/pom.xml
@@ -505,6 +505,7 @@ limitations under the License.
           <include>**/TestDbUriPermissions.java</include>
           <include>**/TestDbRuntimeMetadataRetrieval.java</include>
           <include>**/TestDbPrivilegesAtFunctionScope.java</include>
+          <include>**/TestDatabaseProvider.java</include>
         </includes>
         <argLine>-Dsentry.e2etest.hiveServer2Type=UnmanagedHiveServer2 -Dsentry.e2etest.DFSType=ClusterDFS -Dsentry.e2etest.external.sentry=true</argLine>
        </configuration>