Uploaded image for project: 'JBoss Cache'
  1. JBoss Cache
  2. JBCACHE-1516

CacheStoreInterceptor hangs when concurrent access to txStores HashMap

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 1.4.0.GA, 2.2.0.GA, 3.0.0.GA
    • Fix Version/s: 3.2.0.BETA1, 3.2.0.GA, 1.4.X, 2.X
    • Component/s: None
    • Labels:
      None
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Disable stats on CacheStoreInterceptor.

      Show
      Disable stats on CacheStoreInterceptor.

      Description

      CacheStoreInterceptor has a HashMap txStores instance variable for cache stats. This map is accessed from multiple threads but not synchronized.

      With Sun JVM, concurrent write operations to a HashMap sometimes hang and consume 100% CPU. See the following bug report:

      http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=6484560

      This bug affects all branches, 1.4.x, 2.2.x and trunk (3.x).

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  tkimura Takayoshi Kimura
                  Reporter:
                  tkimura Takayoshi Kimura
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: