You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ranger.apache.org by "Binhua Hu (Jira)" <ji...@apache.org> on 2022/11/16 07:10:00 UTC
[jira] [Commented] (RANGER-3968) The plugin cannot download the latest policy
[ https://issues.apache.org/jira/browse/RANGER-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17634688#comment-17634688 ]
Binhua Hu commented on RANGER-3968:
-----------------------------------
https://github.com/apache/ranger/pull/183
> The plugin cannot download the latest policy
> --------------------------------------------
>
> Key: RANGER-3968
> URL: https://issues.apache.org/jira/browse/RANGER-3968
> Project: Ranger
> Issue Type: Improvement
> Components: admin
> Affects Versions: 1.2.0, 2.2.0
> Reporter: Binhua Hu
> Assignee: Binhua Hu
> Priority: Major
> Attachments: dataBase policyVersion.png, eclipse MAT dump.png, plugin Json policyVersion2.png, web policyVersion.png
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Rangeradmin's download and query interfaces depend on RangerServicePoliciesCache to provide policy information.When a thread starts to update the cache, other threads can only obtain the previous historical information.In PolicyLoaderThread, the data is read from the database. If the socket timeout is not set, the application will wait indefinitely before the database returns the results.It will lead to failure to obtain the latest policy information before restarting the application
> As follows,
> We create some new policies,the RangerAdmin policyVersion has updated,
> !web policyVersion.png|width=621,height=302!
> TheĀ policy version table relevant fields have also been updated,
> !dataBase policyVersion.png|width=758,height=99!
> But the plugin policy version is not updated.
> !plugin Json policyVersion2.png!
> In dump analysis tool(eclipse mat),we found that the thread was stuck in the process of reading the database,
> !eclipse MAT dump.png!
--
This message was sent by Atlassian Jira
(v8.20.10#820010)