Uploaded image for project: 'Infinispan'
  1. Infinispan
  2. ISPN-9124

Uncaught exception in CounterConfigurationManager.startCounterCache

    XMLWordPrintable

Details

    • Task
    • Resolution: Obsolete
    • Major
    • None
    • 9.2.2.Final
    • Test Suite
    • None

    Description

      CounterConfigurationManager.startCounterCache starts the cache asynchronously, but a short test may stop the cache manager before the worker thread got to do anything. The worker thread doesn't catch the exception, so it's just logged on the console:

      Exception in thread "async-thread--p132-t1" org.infinispan.IllegalLifecycleStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
      	at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:951)
      	at org.infinispan.manager.DefaultCacheManager.internalGetCache(DefaultCacheManager.java:465)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:461)
      	at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:447)
      	at org.infinispan.counter.impl.manager.CounterConfigurationManager.lambda$startCounterCache$5(CounterConfigurationManager.java:230)
      	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      	at java.lang.Thread.run(Thread.java:748)
      

      Attachments

        Activity

          People

            Unassigned Unassigned
            dberinde@redhat.com Dan Berindei (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: