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

    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

        1. RANGER-4923-0001.patch
          11 kB
          wangzhongwei

        Issue Links

          Activity

            People

              zhongwei11 wangzhongwei
              zhongwei11 wangzhongwei
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:

                Time Tracking

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