Details
-
Improvement
-
Status: Resolved
-
Major
-
Resolution: Not A Problem
-
1.2.0, 2.2.0
-
None
-
None
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,
TheĀ policy version table relevant fields have also been updated,
But the plugin policy version is not updated.
In dump analysis tool(eclipse mat),we found that the thread was stuck in the process of reading the database,