[JBoss JIRA] (ISPN-11857) AbstractInfinispanTest.eventually() default poll interval is too long
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-11857?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-11857:
--------------------------------
Status: Open (was: New)
> AbstractInfinispanTest.eventually() default poll interval is too long
> ---------------------------------------------------------------------
>
> Key: ISPN-11857
> URL: https://issues.redhat.com/browse/ISPN-11857
> Project: Infinispan
> Issue Type: Task
> Components: Core, Test Suite
> Affects Versions: 11.0.0.Dev05, 10.1.8.Final
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> Some of the {{AbstractInfinispanTest.eventually()}} overloads use a poll interval of 500ms, which is too long.
> The overloads that use a message supplier, and {{eventuallyEquals()}}, use a dynamic polling interval, starting at 65ms by default. All the overloads should use the same strategy, and the overloads that use an explicit polling interval should be removed.
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-9760) HotRodPipeTest.testPipeRequests random failures
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-9760?page=com.atlassian.jira.plugin... ]
Dan Berindei closed ISPN-9760.
------------------------------
Resolution: Out of Date
Probably fixed with the switch to the generated server-side HotRod parser, which removed some of the logging and improved performance with {{SingleByteFrameDecoderChannelInitializer}}.
> HotRodPipeTest.testPipeRequests random failures
> -----------------------------------------------
>
> Key: ISPN-9760
> URL: https://issues.redhat.com/browse/ISPN-9760
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite
> Affects Versions: 9.4.2.Final, 10.0.0.Alpha1
> Reporter: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
>
> On my machine, with trace logging enabled, I sometimes get
> {noformat}
> 10:43:23,658 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.server.hotrod.test.HotRodPipeTest.testPipeRequests
> java.lang.AssertionError: expected:<10000>, got:<4668>
> at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.9.9.jar:?]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:199) ~[infinispan-core-9.4.2-SNAPSHOT-tests.jar:9.4.2-SNAPSHOT]
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:178) ~[infinispan-core-9.4.2-SNAPSHOT-tests.jar:9.4.2-SNAPSHOT]
> at org.infinispan.test.AbstractInfinispanTest.eventuallyEquals(AbstractInfinispanTest.java:168) ~[infinispan-core-9.4.2-SNAPSHOT-tests.jar:9.4.2-SNAPSHOT]
> at org.infinispan.server.hotrod.test.HotRodPipeTest.testPipeRequests(HotRodPipeTest.java:65) ~[test-classes/:?]
> {noformat}
> There are some older failures in CI that look like this
> {noformat}
> java.lang.AssertionError:
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:249)
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:231)
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:207)
> at org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:385)
> at org.infinispan.server.hotrod.test.HotRodPipeTest.testPipeRequests(HotRodPipeTest.java:65)
> {noformat}
> https://ci.infinispan.org/job/Infinispan/job/master/862/testReport/junit/...
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11852) Allow creation of RemoteCacheConfigurations at runtime
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-11852?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-11852:
-----------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/8342
> Allow creation of RemoteCacheConfigurations at runtime
> ------------------------------------------------------
>
> Key: ISPN-11852
> URL: https://issues.redhat.com/browse/ISPN-11852
> Project: Infinispan
> Issue Type: Enhancement
> Components: Configuration, Hot Rod
> Affects Versions: 11.0.0.Dev05
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> ISPN-11676 added the ability to have per-cache client configurations. It should be possible to add new configurations after a RemoteCacheManager has been started.
> {code:java}
> public void remoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer);
> {code}
> If the `name` doesn't yet exist, a builder will be created and the `Consumer` invoked to allow configuration, as follows:
> {code:java}
> remoteCache("blah", c -> c.nearCacheMode(NearCacheMode.INVALIDATED).templateName(DefaultTemplate.DIST_SYNC));
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11852) Allow creation of RemoteCacheConfigurations at runtime
by Tristan Tarrant (Jira)
[ https://issues.redhat.com/browse/ISPN-11852?page=com.atlassian.jira.plugi... ]
Tristan Tarrant updated ISPN-11852:
-----------------------------------
Status: Open (was: New)
> Allow creation of RemoteCacheConfigurations at runtime
> ------------------------------------------------------
>
> Key: ISPN-11852
> URL: https://issues.redhat.com/browse/ISPN-11852
> Project: Infinispan
> Issue Type: Enhancement
> Components: Configuration, Hot Rod
> Affects Versions: 11.0.0.Dev05
> Reporter: Tristan Tarrant
> Assignee: Tristan Tarrant
> Priority: Major
> Fix For: 11.0.0.CR1
>
>
> ISPN-11676 added the ability to have per-cache client configurations. It should be possible to add new configurations after a RemoteCacheManager has been started.
> {code:java}
> public void remoteCache(String name, Consumer<RemoteCacheConfigurationBuilder> builderConsumer);
> {code}
> If the `name` doesn't yet exist, a builder will be created and the `Consumer` invoked to allow configuration, as follows:
> {code:java}
> remoteCache("blah", c -> c.nearCacheMode(NearCacheMode.INVALIDATED).templateName(DefaultTemplate.DIST_SYNC));
> {code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months
[JBoss JIRA] (ISPN-11856) IllegalLifecycleStateException during manager stop with query in classpath
by Dan Berindei (Jira)
[ https://issues.redhat.com/browse/ISPN-11856?page=com.atlassian.jira.plugi... ]
Dan Berindei updated ISPN-11856:
--------------------------------
Status: Open (was: New)
> 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)
5 years, 10 months
[JBoss JIRA] (ISPN-11856) IllegalLifecycleStateException during manager stop with query in classpath
by Dan Berindei (Jira)
Dan Berindei created ISPN-11856:
-----------------------------------
Summary: 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
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)
5 years, 10 months
[JBoss JIRA] (ISPN-11855) Internal caches should ignore wildcard configurations
by Dan Berindei (Jira)
Dan Berindei created ISPN-11855:
-----------------------------------
Summary: Internal caches should ignore wildcard configurations
Key: ISPN-11855
URL: https://issues.redhat.com/browse/ISPN-11855
Project: Infinispan
Issue Type: Bug
Components: Core
Affects Versions: 10.1.8.Final, 11.0.0.Dev05
Reporter: Dan Berindei
Assignee: Dan Berindei
Fix For: 11.0.0.CR1, 10.1.9.Final
{{InternalCacheRegistryImpl.registerInternalCache}} throws a {{CacheConfigurationException}} if a wildcard configuration matches the internal cache name.
It should ignore wildcard configurations instead, and a user should be able to replicate the pre-ISPN-11367 behaviour with a {{*}} wildcard:
{code:xml}
<cache-container>
<local-cache-configuration name="*">
</local-cache-configuration>
</cache-container>
{code}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)
5 years, 10 months