Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-4923

optimize the issue where the policy writing process takes too long and causes incorrect permissions

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 2.4.0, 2.5.0
    • None
    • plugins
    • None

    Description

       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. 

      Attachments

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            zhongwei11 wangzhongwei
            zhongwei11 wangzhongwei

            Dates

              Created:
              Updated:

              Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0h
                0h
                Logged:
                Time Spent - 10m
                10m

                Slack

                  Issue deployment