Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

RANGER-4923. optimize the issue where the policy writing process takes too long and causes incorrect permissions #382

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

granewang
Copy link
Contributor

 When the number of policies is very large, such as exceeding 100,000, 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. 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant