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

[jira] [Created] (SENTRY-902) SimpleDBProviderBackend should retry the authrization process decently

Yibing Shi created SENTRY-902:
---------------------------------

             Summary: SimpleDBProviderBackend should retry the authrization process decently
                 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


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)