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

Hao Hao edited comment on SENTRY-1411 at 8/22/16 10:21 PM:
-----------------------------------------------------------

Investigated on the failed unit test TestConcurrentClients. From the stacktrace 
{noformat}javax.jdo.JDODataStoreException: Iteration request failed : SELECT 
'org.apache.sentry.provider.db.service.model.MSentryPrivilege' AS 
NUCLEUS_TYPE,A1.URI,A1."ACTION",A1."COLUMN_NAME",A1.CREATE_TIME,A1.DB_NAME,A1.WITH_GRANT_OPTION,A1.PRIVILEGE_SCOPE,A1."SERVER_NAME",A1."TABLE_NAME",A1.DB_PRIVILEGE_ID
 FROM SENTRY_ROLE_DB_PRIVILEGE_MAP A0 INNER JOIN SENTRY_DB_PRIVILEGE A1 ON 
A0.DB_PRIVILEGE_ID = A1.DB_PRIVILEGE_ID WHERE A0.ROLE_ID = ?
NestedThrowables:
java.sql.SQLTransactionRollbackException: A lock could not be obtained within 
the time requested{noformat}, it is related to SENTRY-1422(JDO deadlock).


was (Author: hahao):
Investigated on the failed unit test TestConcurrentClients. From the stacktrace 
{{javax.jdo.JDODataStoreException: Iteration request failed : SELECT 
'org.apache.sentry.provider.db.service.model.MSentryPrivilege' AS 
NUCLEUS_TYPE,A1.URI,A1."ACTION",A1."COLUMN_NAME",A1.CREATE_TIME,A1.DB_NAME,A1.WITH_GRANT_OPTION,A1.PRIVILEGE_SCOPE,A1."SERVER_NAME",A1."TABLE_NAME",A1.DB_PRIVILEGE_ID
 FROM SENTRY_ROLE_DB_PRIVILEGE_MAP A0 INNER JOIN SENTRY_DB_PRIVILEGE A1 ON 
A0.DB_PRIVILEGE_ID = A1.DB_PRIVILEGE_ID WHERE A0.ROLE_ID = ?
NestedThrowables:
java.sql.SQLTransactionRollbackException: A lock could not be obtained within 
the time requested}}, it is related to SENTRY-1422(JDO deadlock).

> The sentry client should retry RPCs if it gets a SentryStandbyException 
> (SentryPolicyServiceClient - pool version)
> ------------------------------------------------------------------------------------------------------------------
>
>                 Key: SENTRY-1411
>                 URL: https://issues.apache.org/jira/browse/SENTRY-1411
>             Project: Sentry
>          Issue Type: Sub-task
>          Components: Hdfs Plugin
>    Affects Versions: sentry-ha-redesign
>            Reporter: Colin P. McCabe
>            Assignee: Hao Hao
>             Fix For: sentry-ha-redesign
>
>         Attachments: SENTRY-1411.001-sentry-ha-redesign.patch, 
> SENTRY-1411.002-sentry-ha-redesign.patch, 
> SENTRY-1411.003-sentry-ha-redesign.patch, 
> SENTRY-1411.004-sentry-ha-redesign.patch
>
>
> The sentry client should retry RPCs if it gets a SentryStandbyException



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to