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

The plugin cannot download the latest policy

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 1.2.0, 2.2.0
    • None
    • admin
    • None

    Description

      Rangeradmin's download and query interfaces depend on RangerServicePoliciesCache to provide policy information.When a thread starts to update the cache, other threads can only obtain the previous historical information.In PolicyLoaderThread, the data is read from the database. If the socket timeout is not set, the application will wait indefinitely before the database returns the results.It will lead to failure to obtain the latest policy information before restarting the application

      As follows,

      We create some new policies,the RangerAdmin policyVersion has updated,

      TheĀ  policy version table relevant fields have also been updated,

      But the plugin policy version is not updated.

      In dump analysis tool(eclipse mat),we found that the thread was stuck in the process of reading the database,

      Attachments

        1. web policyVersion.png
          30 kB
          Binhua Hu
        2. dataBase policyVersion.png
          15 kB
          Binhua Hu
        3. plugin Json policyVersion2.png
          10 kB
          Binhua Hu
        4. eclipse MAT dump.png
          85 kB
          Binhua Hu

        Activity

          People

            amazingBoy_hbh Binhua Hu
            amazingBoy_hbh Binhua Hu
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

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