Details
-
Task
-
Resolution: Obsolete
-
Major
-
None
-
9.2.2.Final
-
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)