Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-12600

CachedGenericConfigManager is not thread safe

    XMLWordPrintable

Details

    Description

      The CachedGenericConfigManager contains a non thread safe map.

      It contains the code:

          public void refreshCache()
          {
              cache = MultiKeyMap.decorate(new LRUMap(250));
              Collections.synchronizedMap(cache);
          }
      

      But should be:

          public void refreshCache()
          {
              cache = MultiKeyMap.decorate(new LRUMap(250));
              cache = Collections.synchronizedMap(cache);
          }
      

      There could be a few more little issues as well, such as when refreshCache is called at the same time as retrieve...

      Attachments

        Activity

          People

            jed Jed Wesley-Smith (Inactive)
            nick.menere Nick Menere [Atlassian] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 6h
                6h
                Remaining:
                Remaining Estimate - 6h
                6h
                Logged:
                Time Spent - Not Specified
                Not Specified