Uploaded image for project: 'Commons JCS'
  1. Commons JCS
  2. JCS-116

CompositeCacheManager is thread-hostile

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: jcs-2.0-beta-2
    • Component/s: None
    • Labels:
      None

      Description

      The CompositeCacheManager class is a singleton. However it is not immutable, so is inherently thread-hostile.

      The class does take some steps to prevent reconfiguration, but it still allows changes to variables such as defaultCacheAttr that affect instance methods such as getCache(String)

      This makes it very easy to accidentally affect other threads.

        Attachments

          Activity

            People

            • Assignee:
              tv Thomas Vandahl
              Reporter:
              sebb Sebb

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment