[JBoss JIRA] (ISPN-11856) IllegalLifecycleStateException during manager stop with query in classpath
by Nistor Adrian (Jira)
[ https://issues.redhat.com/browse/ISPN-11856?page=com.atlassian.jira.plugi... ]
Nistor Adrian updated ISPN-11856:
---------------------------------
Status: Pull Request Sent (was: Coding In Progress)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8366
> IllegalLifecycleStateException during manager stop with query in classpath
> --------------------------------------------------------------------------
>
> Key: ISPN-11856
> URL: https://issues.redhat.com/browse/ISPN-11856
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 11.0.0.Dev05
> Reporter: Dan Berindei
> Assignee: Nistor Adrian
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> When the {{query-core}} module is in the classpath, the {{QueryCache}} component is registered in the global component registry, but if there query is not used, the actual query cache is never created.
> Then during manager stop, {{org.infinispan.query.core.impl.LifecycleManager.cacheStopped}} tries to remove cached queries for every stopped cache, because even non-indexed caches can have cached queries. But the query cache has not been created, and trying to create it fails with an {{IllegalLifecycleStateException}}.
> {noformat}
> 11:13:33,390 ERROR (testng-Test) [ComponentRegistry] ISPN000538: Error stopping module org.infinispan.query.impl.LifecycleManager:defaultcache
> org.infinispan.commons.IllegalLifecycleStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
> at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:1092) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.doDefineConfiguration(DefaultCacheManager.java:438) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.defineConfiguration(DefaultCacheManager.java:418) ~[classes/:?]
> at org.infinispan.security.actions.DefineConfigurationAction.run(DefineConfigurationAction.java:28) ~[classes/:?]
> at org.infinispan.security.actions.DefineConfigurationAction.run(DefineConfigurationAction.java:14) ~[classes/:?]
> at org.infinispan.security.Security.doPrivileged(Security.java:51) ~[classes/:?]
> at org.infinispan.registry.impl.SecurityActions.defineConfiguration(SecurityActions.java:30) ~[classes/:?]
> at org.infinispan.registry.impl.InternalCacheRegistryImpl.registerInternalCache(InternalCacheRegistryImpl.java:82) ~[classes/:?]
> at org.infinispan.query.core.impl.QueryCache.getCache(QueryCache.java:102) ~[classes/:?]
> at org.infinispan.query.core.impl.QueryCache.clear(QueryCache.java:86) ~[classes/:?]
> at org.infinispan.query.impl.LifecycleManager.cacheStopped(LifecycleManager.java:337) ~[classes/:?]
> at org.infinispan.factories.ComponentRegistry.postStop(ComponentRegistry.java:252) ~[classes/:?]
> at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:297) ~[classes/:?]
> at org.infinispan.cache.impl.CacheImpl.performImmediateShutdown(CacheImpl.java:1096) ~[classes/:?]
> at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:1061) ~[classes/:?]
> at org.infinispan.cache.impl.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:521) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.terminate(DefaultCacheManager.java:803) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.stopCaches(DefaultCacheManager.java:859) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.internalStop(DefaultCacheManager.java:835) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:811) ~[classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11882) LimitedExecutor.tryExecute blocking call causing random test failures
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-11882?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-11882:
--------------------------------
Status: Open (was: New)
> LimitedExecutor.tryExecute blocking call causing random test failures
> ---------------------------------------------------------------------
>
> Key: ISPN-11882
> URL: https://issues.redhat.com/browse/ISPN-11882
> Project: Infinispan
> Issue Type: Bug
> Components: Core, Test Suite
> Affects Versions: 11.0.0.Dev05
> Reporter: Dan Berindei
> Assignee: Will Burns
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> Causing random failures in {{ClusterTopologyManagerTest}}
> {noformat}
> java.lang.AssertionError: Blocking call! jdk.internal.misc.Unsafe#park on thread Thread[non-blocking-thread-ClusterTopologyManagerTest-NodeD-p15671-t5,5,ISPN-non-blocking-thread-group]
> at org.infinispan.util.CoreTestBlockHoundIntegration.lambda$applyTo$0(CoreTestBlockHoundIntegration.java:44)
> at reactor.blockhound.BlockHound$Builder.lambda$install$8(BlockHound.java:383)
> at reactor.blockhound.BlockHoundRuntime.checkBlocking(BlockHoundRuntime.java:89)
> at java.base/jdk.internal.misc.Unsafe.park(Unsafe.java)
> at java.base/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
> at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:885)
> at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:917)
> at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1240)
> at java.base/java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:267)
> at org.infinispan.executors.LimitedExecutor.tryExecute(LimitedExecutor.java:142)
> at org.infinispan.executors.LimitedExecutor.access$300(LimitedExecutor.java:38)
> at org.infinispan.executors.LimitedExecutor$Runner.accept(LimitedExecutor.java:243)
> at org.infinispan.executors.LimitedExecutor$Runner.accept(LimitedExecutor.java:234)
> at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
> at java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883)
> at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2251)
> at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:143)
> at org.infinispan.executors.LimitedExecutor.lambda$executeAsync$1(LimitedExecutor.java:136)
> at org.infinispan.executors.LimitedExecutor.actualRun(LimitedExecutor.java:192)
> at org.infinispan.executors.LimitedExecutor.runTasks(LimitedExecutor.java:176)
> at org.infinispan.executors.LimitedExecutor.access$100(LimitedExecutor.java:38)
> at org.infinispan.executors.LimitedExecutor$Runner.run(LimitedExecutor.java:237)
> at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
> at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
> at java.base/java.lang.Thread.run(Thread.java:834)
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11882) LimitedExecutor.tryExecute blocking call causing random test failures
by Dan Berindei (Jira)
Dan Berindei created ISPN-11882:
-----------------------------------
Summary: LimitedExecutor.tryExecute blocking call causing random test failures
Key: ISPN-11882
URL: https://issues.redhat.com/browse/ISPN-11882
Project: Infinispan
Issue Type: Bug
Components: Core, Test Suite
Affects Versions: 11.0.0.Dev05
Reporter: Dan Berindei
Assignee: Will Burns
Fix For: 11.0.0.CR1
Causing random failures in {{ClusterTopologyManagerTest}}
{noformat}
java.lang.AssertionError: Blocking call! jdk.internal.misc.Unsafe#park on thread Thread[non-blocking-thread-ClusterTopologyManagerTest-NodeD-p15671-t5,5,ISPN-non-blocking-thread-group]
at org.infinispan.util.CoreTestBlockHoundIntegration.lambda$applyTo$0(CoreTestBlockHoundIntegration.java:44)
at reactor.blockhound.BlockHound$Builder.lambda$install$8(BlockHound.java:383)
at reactor.blockhound.BlockHoundRuntime.checkBlocking(BlockHoundRuntime.java:89)
at java.base/jdk.internal.misc.Unsafe.park(Unsafe.java)
at java.base/java.util.concurrent.locks.LockSupport.park(LockSupport.java:194)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.parkAndCheckInterrupt(AbstractQueuedSynchronizer.java:885)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquireQueued(AbstractQueuedSynchronizer.java:917)
at java.base/java.util.concurrent.locks.AbstractQueuedSynchronizer.acquire(AbstractQueuedSynchronizer.java:1240)
at java.base/java.util.concurrent.locks.ReentrantLock.lock(ReentrantLock.java:267)
at org.infinispan.executors.LimitedExecutor.tryExecute(LimitedExecutor.java:142)
at org.infinispan.executors.LimitedExecutor.access$300(LimitedExecutor.java:38)
at org.infinispan.executors.LimitedExecutor$Runner.accept(LimitedExecutor.java:243)
at org.infinispan.executors.LimitedExecutor$Runner.accept(LimitedExecutor.java:234)
at java.base/java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
at java.base/java.util.concurrent.CompletableFuture.uniWhenCompleteStage(CompletableFuture.java:883)
at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:2251)
at java.base/java.util.concurrent.CompletableFuture.whenComplete(CompletableFuture.java:143)
at org.infinispan.executors.LimitedExecutor.lambda$executeAsync$1(LimitedExecutor.java:136)
at org.infinispan.executors.LimitedExecutor.actualRun(LimitedExecutor.java:192)
at org.infinispan.executors.LimitedExecutor.runTasks(LimitedExecutor.java:176)
at org.infinispan.executors.LimitedExecutor.access$100(LimitedExecutor.java:38)
at org.infinispan.executors.LimitedExecutor$Runner.run(LimitedExecutor.java:237)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months
[JBoss JIRA] (ISPN-11856) IllegalLifecycleStateException during manager stop with query in classpath
by Nistor Adrian (Jira)
[ https://issues.redhat.com/browse/ISPN-11856?page=com.atlassian.jira.plugi... ]
Work on ISPN-11856 started by Nistor Adrian.
--------------------------------------------
> IllegalLifecycleStateException during manager stop with query in classpath
> --------------------------------------------------------------------------
>
> Key: ISPN-11856
> URL: https://issues.redhat.com/browse/ISPN-11856
> Project: Infinispan
> Issue Type: Bug
> Components: Embedded Querying
> Affects Versions: 11.0.0.Dev05
> Reporter: Dan Berindei
> Assignee: Nistor Adrian
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> When the {{query-core}} module is in the classpath, the {{QueryCache}} component is registered in the global component registry, but if there query is not used, the actual query cache is never created.
> Then during manager stop, {{org.infinispan.query.core.impl.LifecycleManager.cacheStopped}} tries to remove cached queries for every stopped cache, because even non-indexed caches can have cached queries. But the query cache has not been created, and trying to create it fails with an {{IllegalLifecycleStateException}}.
> {noformat}
> 11:13:33,390 ERROR (testng-Test) [ComponentRegistry] ISPN000538: Error stopping module org.infinispan.query.impl.LifecycleManager:defaultcache
> org.infinispan.commons.IllegalLifecycleStateException: Cache container has been stopped and cannot be reused. Recreate the cache container.
> at org.infinispan.manager.DefaultCacheManager.assertIsNotTerminated(DefaultCacheManager.java:1092) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.doDefineConfiguration(DefaultCacheManager.java:438) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.defineConfiguration(DefaultCacheManager.java:418) ~[classes/:?]
> at org.infinispan.security.actions.DefineConfigurationAction.run(DefineConfigurationAction.java:28) ~[classes/:?]
> at org.infinispan.security.actions.DefineConfigurationAction.run(DefineConfigurationAction.java:14) ~[classes/:?]
> at org.infinispan.security.Security.doPrivileged(Security.java:51) ~[classes/:?]
> at org.infinispan.registry.impl.SecurityActions.defineConfiguration(SecurityActions.java:30) ~[classes/:?]
> at org.infinispan.registry.impl.InternalCacheRegistryImpl.registerInternalCache(InternalCacheRegistryImpl.java:82) ~[classes/:?]
> at org.infinispan.query.core.impl.QueryCache.getCache(QueryCache.java:102) ~[classes/:?]
> at org.infinispan.query.core.impl.QueryCache.clear(QueryCache.java:86) ~[classes/:?]
> at org.infinispan.query.impl.LifecycleManager.cacheStopped(LifecycleManager.java:337) ~[classes/:?]
> at org.infinispan.factories.ComponentRegistry.postStop(ComponentRegistry.java:252) ~[classes/:?]
> at org.infinispan.factories.AbstractComponentRegistry.stop(AbstractComponentRegistry.java:297) ~[classes/:?]
> at org.infinispan.cache.impl.CacheImpl.performImmediateShutdown(CacheImpl.java:1096) ~[classes/:?]
> at org.infinispan.cache.impl.CacheImpl.stop(CacheImpl.java:1061) ~[classes/:?]
> at org.infinispan.cache.impl.AbstractDelegatingCache.stop(AbstractDelegatingCache.java:521) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.terminate(DefaultCacheManager.java:803) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.stopCaches(DefaultCacheManager.java:859) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.internalStop(DefaultCacheManager.java:835) ~[classes/:?]
> at org.infinispan.manager.DefaultCacheManager.stop(DefaultCacheManager.java:811) ~[classes/:?]
> {noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
4 years, 8 months