[ https://issues.apache.org/jira/browse/RANGER-4923?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17878013#comment-17878013 ]
wangzhongwei commented on RANGER-4923: -------------------------------------- ranger.plugin. + serviceType+. atomicmove should set be true to enable the atomicmove file function > 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.4.0, 2.5.0 > Reporter: wangzhongwei > Assignee: wangzhongwei > Priority: Major > Attachments: RANGER-4923-0001.patch > > Time Spent: 10m > Remaining Estimate: 0h > > 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)