[ 
https://issues.apache.org/jira/browse/SENTRY-1614?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15858399#comment-15858399
 ] 

kalyan kumar kalvagadda commented on SENTRY-1614:
-------------------------------------------------

Code changes include following
1. Removing PATHS column from primary key as Primary key of this long is not 
accepted by all databases.
2. Remove the index on MAUTHZPATHSMAPPING_PATHS. As there would be implicit 
index created with AUTHZ_OBJ_ID_OID.
3. Added test to run Schematool tests with mysql.

> DB schema key is too long for MySQL
> -----------------------------------
>
>                 Key: SENTRY-1614
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1614
>             Project: Sentry
>          Issue Type: Bug
>          Components: Sentry
>    Affects Versions: sentry-ha-redesign
>            Reporter: kalyan kumar kalvagadda
>            Assignee: kalyan kumar kalvagadda
>
> When a schema tool is used to initialize sentry database schema we observing  
> issue and the initialization of schema fails. Here are the details of the 
> failure.
> *Error: Specified key was too long; max key length is 767 bytes*
> {noformat}
> Error: Specified key was too long; max key length is 767 bytes 
> (state=42000,code=1071)
> Closing: 0: jdbc:mysql://192.168.56.103/sentry_db1
> org.apache.sentry.core.common.exception.SentryUserException: Schema 
> initialization FAILED! Metastore state would be inconsistent !!
> *** Sentry schemaTool failed ***
> {noformat}



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to