You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "Hadoop QA (JIRA)" <ji...@apache.org> on 2015/09/25 08:16:04 UTC

[jira] [Commented] (SENTRY-902) SimpleDBProviderBackend should retry the authrization process properly

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

Hadoop QA commented on SENTRY-902:
----------------------------------

Here are the results of testing the latest attachment
https://issues.apache.org/jira/secure/attachment/12762323/SENTRY-902.1.patch against master.

{color:red}Overall:{color} -1 due to an error

{color:red}ERROR:{color} failed to apply patch (exit code 1):
The patch does not appear to apply with p0, p1, or p2



Console output: https://builds.apache.org/job/PreCommit-SENTRY-Build/872/console

This message is automatically generated.

> SimpleDBProviderBackend should retry the authrization process properly
> ----------------------------------------------------------------------
>
>                 Key: SENTRY-902
>                 URL: https://issues.apache.org/jira/browse/SENTRY-902
>             Project: Sentry
>          Issue Type: Bug
>    Affects Versions: 1.4.0
>            Reporter: Yibing Shi
>         Attachments: SENTRY-902.1.patch
>
>
> Currently {{SimpleDBProviderBackend}} doesn't retry the authorization properly. Problems are:
> # It retry count is hard coded. Always retries once
> # No wait time between before retries
> # The method calls itself recursively, which could causes stack overflow if retries too many times
> # If an exception happens in {{SentryPolicyServiceClient.listPrivilegesForProvider}}, then {{policyServiceClient}} won't be closed, which could cause resource leak.
> Related codes are: 
> https://github.com/cloudera/sentry/blob/cdh5-1.4.0_5.4.7/sentry-provider/sentry-provider-db/src/main/java/org/apache/sentry/provider/db/SimpleDBProviderBackend.java#L75-L105



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