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

Concurrency issues with multiple threads calling cache.start

    Details

    • Type: Bug
    • Status: Resolved (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.2.8.GA
    • Fix Version/s: 3.2.9.GA
    • Component/s: None
    • Labels:
      None
    • Steps to Reproduce:
      Hide

      CacheFactory factory = new DefaultCacheFactory();
      cache = factory.createCache("cache.xml", false);
      for ( int i = 0; i < 10; ++ i )
      new Thread ( this ).start();

      public void run ()

      { cache.start (); }
      Show
      CacheFactory factory = new DefaultCacheFactory(); cache = factory.createCache("cache.xml", false); for ( int i = 0; i < 10; ++ i ) new Thread ( this ).start(); public void run () { cache.start (); }
    • Affects:
      Release Notes

      Description

      There is no synchronization on cache.start, and concurrent calls to start the same cache cause errors.

      This is particularly an issue in AS 5, where caches are retrieved from the EAP CacheManager
      and the first user of the cache must start it.

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  dereed Dennis Reed
                  Reporter:
                  dereed Dennis Reed
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: