[ 
https://issues.apache.org/jira/browse/RANGER-3968?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Binhua Hu updated RANGER-3968:
------------------------------
    Description: 
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!

  was: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


> 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, plugin Json 
> policyVersion2.png, web policyVersion.png
>
>
> 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!



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to