CachedGenericConfigManager is not thread safe

XMLWordPrintable

      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...

            Assignee:
            Jed Wesley-Smith (Inactive)
            Reporter:
            Nick Menere [Atlassian] (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

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