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

Exception when using the cache from different threads (synchronization problems)

VotersWatch issueWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • None
    • jcs-2.0-beta-1
    • Composite Cache
    • None

    Description

      Recently we switched our product into parallel mode, so now we are using JCS cache from different threads. And it looks like there are some problems with synchronization inside JCS, sometimes we are getting the following error:

      Caused by: java.lang.Error: update: last is null!
      at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.spoolLastElement(AbstractDoulbeLinkedListMemoryCache.java:280)
      at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.spoolIfNeeded(AbstractDoulbeLinkedListMemoryCache.java:154)
      at org.apache.jcs.engine.memory.AbstractDoulbeLinkedListMemoryCache.update(AbstractDoulbeLinkedListMemoryCache.java:106)
      at org.apache.jcs.engine.control.CompositeCache.copyAuxiliaryRetrievedItemToMemory(CompositeCache.java:993)
      at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:566)
      at org.apache.jcs.engine.control.CompositeCache.get(CompositeCache.java:429)
      at org.apache.jcs.access.CacheAccess.get(CacheAccess.java:192)

      Attachments

        Issue Links

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            tv Thomas Vandahl
            asofronov Alexander Sofronov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment