[JBoss JIRA] (ISPN-5957) Simple cache fails to start when statistics is enabled
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-5957?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-5957:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Fix Version/s: 8.1.0.CR1
8.1.0.Final
Resolution: Done
> Simple cache fails to start when statistics is enabled
> ------------------------------------------------------
>
> Key: ISPN-5957
> URL: https://issues.jboss.org/browse/ISPN-5957
> Project: Infinispan
> Issue Type: Bug
> Components: Core
> Affects Versions: 8.0.1.Final
> Reporter: Paul Ferraro
> Assignee: Radim Vansa
> Priority: Critical
> Fix For: 8.1.0.CR1, 8.1.0.Final, 8.0.2.Final
>
>
> Failure also happens with statistics are disabled, but still available.
> {noformat}
> 31m13:29:08,909 ERROR [org.jboss.msc.service.fail] (ServerService Thread Pool -- 25) MSC000001: Failed to start service jboss.infinispan.hibernate.local-query: org.jboss.msc.service.StartException in service jboss.infinispan.hibernate.local-query: org.infinispan.commons.CacheException: Unable to construct a ComponentRegistry!
> at org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:107)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
> at java.lang.Thread.run(Thread.java:745)
> at org.jboss.threads.JBossThread.run(JBossThread.java:320)
> Caused by: org.infinispan.commons.CacheException: Unable to construct a ComponentRegistry!
> at org.infinispan.factories.ComponentRegistry.<init>(ComponentRegistry.java:91)
> at org.infinispan.factories.InternalCacheFactory$1.<init>(InternalCacheFactory.java:89)
> at org.infinispan.factories.InternalCacheFactory.createSimpleCache(InternalCacheFactory.java:89)
> at org.infinispan.factories.InternalCacheFactory.createCache(InternalCacheFactory.java:54)
> at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:621)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:580)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:445)
> at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:117)
> at org.jboss.as.clustering.infinispan.DefaultCacheContainer.getCache(DefaultCacheContainer.java:112)
> at org.wildfly.clustering.infinispan.spi.service.CacheBuilder.start(CacheBuilder.java:80)
> at org.wildfly.clustering.service.AsynchronousServiceBuilder$1.run(AsynchronousServiceBuilder.java:102)
> ... 4 more
> Caused by: org.infinispan.commons.CacheConfigurationException: Cannot auto-instantiate factory class org.infinispan.stats.impl.StatsCollector$Factory as it doesn't implement AutoInstantiableFactory! Debug stack: null
> at org.infinispan.factories.AbstractComponentRegistry.instantiateFactory(AbstractComponentRegistry.java:350)
> at org.infinispan.factories.AbstractComponentRegistry.createComponentFactoryInternal(AbstractComponentRegistry.java:321)
> at org.infinispan.factories.ComponentRegistry.createComponentFactoryInternal(ComponentRegistry.java:198)
> at org.infinispan.factories.AbstractComponentRegistry.getFactory(AbstractComponentRegistry.java:304)
> at org.infinispan.factories.ComponentRegistry.getFactory(ComponentRegistry.java:179)
> at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:270)
> at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:152)
> at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:227)
> at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:65)
> at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
> at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:201)
> at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:189)
> at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:156)
> at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:277)
> at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:152)
> at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:227)
> at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:65)
> at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
> at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:201)
> at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:189)
> at org.infinispan.factories.AbstractComponentRegistry.registerComponent(AbstractComponentRegistry.java:156)
> at org.infinispan.factories.AbstractComponentRegistry.getOrCreateComponent(AbstractComponentRegistry.java:277)
> at org.infinispan.factories.ComponentRegistry.getOrCreateComponent(ComponentRegistry.java:152)
> at org.infinispan.factories.AbstractComponentRegistry.invokeInjectionMethod(AbstractComponentRegistry.java:227)
> at org.infinispan.factories.AbstractComponentRegistry.access$000(AbstractComponentRegistry.java:65)
> at org.infinispan.factories.AbstractComponentRegistry$Component.injectDependencies(AbstractComponentRegistry.java:797)
> at org.infinispan.factories.AbstractComponentRegistry.registerComponentInternal(AbstractComponentRegistry.java:201)
> at org.infinispan.factories.ComponentRegistry.registerComponentInternal(ComponentRegistry.java:189)
> at org.infinispan.factories.AbstractComponentRegistry.registerNonVolatileComponent(AbstractComponentRegistry.java:164)
> at org.infinispan.factories.ComponentRegistry.<init>(ComponentRegistry.java:85)
> ... 14 more
> {noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months
[JBoss JIRA] (ISPN-5981) Compatibility mode: HotRod client sends request to wrong owner
by Dan Berindei (JIRA)
Dan Berindei created ISPN-5981:
----------------------------------
Summary: Compatibility mode: HotRod client sends request to wrong owner
Key: ISPN-5981
URL: https://issues.jboss.org/browse/ISPN-5981
Project: Infinispan
Issue Type: Bug
Components: Remote Protocols
Affects Versions: 8.1.0.Beta1, 8.0.1.Final
Reporter: Dan Berindei
Attachments: GetAllCompatDistTest.java
The HotRod client computes the hash on the serialized key, i.e. {{MurmurHash3.hash(obj2bytes(key))}}, but the server decides the entry location based on the unmarshalled key, i.e. {{MurmurHash3.hash(key.hashCode())}}.
I've modified {{GetAllCompatDistTest}} (attached) to test if there are any {{ClusteredGetCommand}}s being sent for {{RemoteCache.get(key)}} operations, and it finds quite a few:
{noformat}
java.lang.AssertionError: expected:<100> but was:<147>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:245) ~[testng-6.8.8.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:252) ~[testng-6.8.8.jar:?]
at org.infinispan.client.hotrod.GetAllCompatDistTest.testGetWithCompatibility(GetAllCompatDistTest.java:57) ~[test-classes/:?]
{noformat}
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)
8 years, 6 months