[
https://issues.apache.org/jira/browse/RANGER-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Binhua Hu resolved RANGER-3968.
-------------------------------
Resolution: Not A Problem
> 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: 1h 40m
> 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)