[JBoss JIRA] (ISPN-4512) CacheManagerTest.testCacheManagerRestartReusingConfigurations random failures
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-4512?page=com.atlassian.jira.plugin.... ]
William Burns commented on ISPN-4512:
-------------------------------------
It looks like this is caused by the ExternalizerTable not being started properly in some edge case that I haven't found yet when I debug I can see started=false.
> CacheManagerTest.testCacheManagerRestartReusingConfigurations random failures
> -----------------------------------------------------------------------------
>
> Key: ISPN-4512
> URL: https://issues.jboss.org/browse/ISPN-4512
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Core, Test Suite - Core
> Affects Versions: 7.0.0.Alpha4
> Reporter: Dan Berindei
> Assignee: William Burns
> Priority: Blocker
> Labels: testsuite_stability
> Fix For: 7.0.0.Beta1
>
> Attachments: CacheManagerTest_t_ISPN-4154_failing_elasticity_test_20140707.log.gz
>
>
> When a new cache manager is started with the same configuration, it uses the JGroupsTransport instance. In some rare cases, the JGroupsTransport keeps using the old marshaller, which doesn't work, and the cache fails to start:
> {noformat}
> 23:54:08,203 TRACE (testng-CacheManagerTest:___defaultcache) [JGroupsTransport] dests=[NodeB-24139], command=CacheTopologyControlCommand{cache=___defaultcache, type=JOIN, sender=NodeA-33664, joinInfo=CacheJoinInfo{consistentHashFactory=org.infinispan.distribution.ch.impl.ReplicatedConsistentHashFactory@b8c8791, hashFunction=MurmurHash3, numSegments=60, numOwners=2, timeout=240000, totalOrder=false, distributed=false}, topologyId=0, currentCH=null, pendingCH=null, throwable=null, viewId=3}, mode=SYNCHRONOUS, timeout=240000
> 23:54:08,207 DEBUG (testng-CacheManagerTest:___defaultcache) [VersionAwareMarshaller] Object is not serializable
> java.io.NotSerializableException: org.infinispan.topology.CacheTopologyControlCommand
> at org.jboss.marshalling.river.RiverMarshaller.doWriteObject(RiverMarshaller.java:890)
> at org.jboss.marshalling.AbstractObjectOutput.writeObject(AbstractObjectOutput.java:58)
> at org.jboss.marshalling.AbstractMarshaller.writeObject(AbstractMarshaller.java:111)
> at org.infinispan.commons.marshall.jboss.AbstractJBossMarshaller.objectToObjectStream(AbstractJBossMarshaller.java:73)
> at org.infinispan.marshall.core.VersionAwareMarshaller.objectToBuffer(VersionAwareMarshaller.java:77)
> at org.infinispan.commons.marshall.AbstractMarshaller.objectToBuffer(AbstractMarshaller.java:41)
> at org.infinispan.commons.marshall.AbstractDelegatingMarshaller.objectToBuffer(AbstractDelegatingMarshaller.java:85)
> at org.infinispan.remoting.transport.jgroups.MarshallerAdapter.objectToBuffer(MarshallerAdapter.java:23)
> at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.marshallCall(CommandAwareRpcDispatcher.java:335)
> at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.processSingleCall(CommandAwareRpcDispatcher.java:352)
> at org.infinispan.remoting.transport.jgroups.CommandAwareRpcDispatcher.invokeRemoteCommand(CommandAwareRpcDispatcher.java:165)
> at org.infinispan.remoting.transport.jgroups.JGroupsTransport.invokeRemotely(JGroupsTransport.java:526)
> at org.infinispan.topology.LocalTopologyManagerImpl.executeOnCoordinator(LocalTopologyManagerImpl.java:290)
> at org.infinispan.topology.LocalTopologyManagerImpl.join(LocalTopologyManagerImpl.java:100)
> at org.infinispan.statetransfer.StateTransferManagerImpl.start(StateTransferManagerImpl.java:104)
> {noformat}
> The only test that does this is CacheManagerTest.testCacheManagerRestartReusingConfigurations.
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ISPN-4543) Spring tests missing jgroups-tcp.xml
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-4543?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-4543:
--------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
Integrated. Thanks!
> Spring tests missing jgroups-tcp.xml
> ------------------------------------
>
> Key: ISPN-4543
> URL: https://issues.jboss.org/browse/ISPN-4543
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Test Suite - Core
> Affects Versions: 7.0.0.Alpha5
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 7.0.0.Beta1
>
>
> Side effect of https://issues.jboss.org/browse/ISPN-4499
> {code}
> springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest) Time elapsed: 0.051 sec <<< FAILURE!
> org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: configurationFile property specifies value jgroups-tcp.xml that could not be read!
> at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:243)
> at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:563)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:529)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:409)
> at org.infinispan.spring.provider.SpringEmbeddedCacheManager.getCache(SpringEmbeddedCacheManager.java:41)
> at org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest.springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(SpringEmbeddedCacheManagerFactoryBeanTest.java:78)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ISPN-4544) BaseWordCountMapReduceTest#testCombinerForDistributedReductionWithException doesn't actually test reduce exception
by William Burns (JIRA)
William Burns created ISPN-4544:
-----------------------------------
Summary: BaseWordCountMapReduceTest#testCombinerForDistributedReductionWithException doesn't actually test reduce exception
Key: ISPN-4544
URL: https://issues.jboss.org/browse/ISPN-4544
Project: Infinispan
Issue Type: Feature Request
Security Level: Public (Everyone can see)
Components: Distributed Execution and Map/Reduce
Affects Versions: 7.0.0.Alpha5
Reporter: William Burns
Assignee: Vladimir Blagojevic
When looking into serialization issues I found that many map reduce failures occur due to not serializable exceptions. Looking closer it appears this was caused by the testCombinerForDistributedReductionWithException method because the anonymous inner class cannot be serialized and throws a CacheException causing the test to pass. However if I pass in a serializable class the test fails because the Divide By Zero exception is swallowed incorrectly.
{code}
@Test(expectedExceptions = CacheException.class)
public void testCombinerForDistributedReductionWithException() throws Exception {
MapReduceTask<String, String, String, Integer> task = invokeMapReduce(null);
task.combinedWith(new DivideByZeroReducer());
task.execute();
}
private static class DivideByZeroReducer implements Reducer<String, Integer>, Serializable {
@Override
public Integer reduce(String reducedKey, Iterator<Integer> iter) {
//simulating exception
int a = 4 / 0;
return null;
}
}
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ISPN-4544) BaseWordCountMapReduceTest#testCombinerForDistributedReductionWithException doesn't actually test reduce exception
by William Burns (JIRA)
[ https://issues.jboss.org/browse/ISPN-4544?page=com.atlassian.jira.plugin.... ]
William Burns updated ISPN-4544:
--------------------------------
Issue Type: Bug (was: Feature Request)
> BaseWordCountMapReduceTest#testCombinerForDistributedReductionWithException doesn't actually test reduce exception
> ------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-4544
> URL: https://issues.jboss.org/browse/ISPN-4544
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Distributed Execution and Map/Reduce
> Affects Versions: 7.0.0.Alpha5
> Reporter: William Burns
> Assignee: Vladimir Blagojevic
>
> When looking into serialization issues I found that many map reduce failures occur due to not serializable exceptions. Looking closer it appears this was caused by the testCombinerForDistributedReductionWithException method because the anonymous inner class cannot be serialized and throws a CacheException causing the test to pass. However if I pass in a serializable class the test fails because the Divide By Zero exception is swallowed incorrectly.
> {code}
> @Test(expectedExceptions = CacheException.class)
> public void testCombinerForDistributedReductionWithException() throws Exception {
> MapReduceTask<String, String, String, Integer> task = invokeMapReduce(null);
> task.combinedWith(new DivideByZeroReducer());
> task.execute();
> }
> private static class DivideByZeroReducer implements Reducer<String, Integer>, Serializable {
> @Override
> public Integer reduce(String reducedKey, Iterator<Integer> iter) {
> //simulating exception
> int a = 4 / 0;
> return null;
> }
> }
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ISPN-4543) Spring tests missing jgroups-tcp.xml
by Gustavo Fernandes (JIRA)
[ https://issues.jboss.org/browse/ISPN-4543?page=com.atlassian.jira.plugin.... ]
Gustavo Fernandes updated ISPN-4543:
------------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/2731
> Spring tests missing jgroups-tcp.xml
> ------------------------------------
>
> Key: ISPN-4543
> URL: https://issues.jboss.org/browse/ISPN-4543
> Project: Infinispan
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Test Suite - Core
> Affects Versions: 7.0.0.Alpha5
> Reporter: Gustavo Fernandes
> Assignee: Gustavo Fernandes
> Fix For: 7.0.0.Beta1
>
>
> Side effect of https://issues.jboss.org/browse/ISPN-4499
> {code}
> springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest) Time elapsed: 0.051 sec <<< FAILURE!
> org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: configurationFile property specifies value jgroups-tcp.xml that could not be read!
> at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:243)
> at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:563)
> at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:529)
> at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:409)
> at org.infinispan.spring.provider.SpringEmbeddedCacheManager.getCache(SpringEmbeddedCacheManager.java:41)
> at org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest.springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(SpringEmbeddedCacheManagerFactoryBeanTest.java:78)
> {code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months
[JBoss JIRA] (ISPN-4543) Spring tests missing jgroups-tcp.xml
by Gustavo Fernandes (JIRA)
Gustavo Fernandes created ISPN-4543:
---------------------------------------
Summary: Spring tests missing jgroups-tcp.xml
Key: ISPN-4543
URL: https://issues.jboss.org/browse/ISPN-4543
Project: Infinispan
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: Test Suite - Core
Affects Versions: 7.0.0.Alpha5
Reporter: Gustavo Fernandes
Assignee: Gustavo Fernandes
Fix For: 7.0.0.Beta1
Side effect of https://issues.jboss.org/browse/ISPN-4499
{code}
springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest) Time elapsed: 0.051 sec <<< FAILURE!
org.infinispan.manager.EmbeddedCacheManagerStartupException: org.infinispan.commons.CacheConfigurationException: configurationFile property specifies value jgroups-tcp.xml that could not be read!
at org.infinispan.factories.GlobalComponentRegistry.start(GlobalComponentRegistry.java:243)
at org.infinispan.manager.DefaultCacheManager.wireAndStartCache(DefaultCacheManager.java:563)
at org.infinispan.manager.DefaultCacheManager.createCache(DefaultCacheManager.java:529)
at org.infinispan.manager.DefaultCacheManager.getCache(DefaultCacheManager.java:409)
at org.infinispan.spring.provider.SpringEmbeddedCacheManager.getCache(SpringEmbeddedCacheManager.java:41)
at org.infinispan.spring.provider.SpringEmbeddedCacheManagerFactoryBeanTest.springEmbeddedCacheManagerFactoryBeanShouldCreateACustomizedCacheManagerIfGivenADefaultConfigurationLocation(SpringEmbeddedCacheManagerFactoryBeanTest.java:78)
{code}
--
This message was sent by Atlassian JIRA
(v6.2.6#6264)
10 years, 6 months