wangzhongwei created RANGER-4923:
------------------------------------
Summary: optimize the issue where the policy writing process takes
too long and causes incorrect permissions
Key: RANGER-4923
URL: https://issues.apache.org/jira/browse/RANGER-4923
Project: Ranger
Issue Type: Improvement
Components: plugins
Affects Versions: 2.5.0, 2.4.0
Reporter: wangzhongwei
Assignee: wangzhongwei
When the number of policies is very large, such as exceeding 100000, the
policy file may grow larger than 100MB. In this case, the plugin may take
several seconds or even longer to write the policies to the cache file using
FileWriter. During this process, from clearing to writing the policy file,
there may be issues with insufficient permissions. To resolve this issue, we
can write the policy to a temporary file first and then use an atomic MV (which
can be configured as a parameter) to handle the situation.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)