[infinispan-issues] [JBoss JIRA] (ISPN-4231) DistSyncL1FuncTest.testRemoteGetArrivesButWriteOccursBeforeRegistration random failures
Dan Berindei (JIRA)
issues at jboss.org
Thu Apr 24 10:20:34 EDT 2014
[ https://issues.jboss.org/browse/ISPN-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12963536#comment-12963536 ]
Dan Berindei commented on ISPN-4231:
------------------------------------
Turns out the ClusteredGetCommand that blocks on NodeD is from a previous test method:
{noformat}
14:39:03,956 TRACE (testng-DistSyncL1FuncTest:dist) [JGroupsTransport] dests=[NodeD-61213, NodeC-23789], command=ClusteredGetCommand{key=key-to-the-cache, flags=null}, mode=WAIT_FOR_VALID_RESPONSE, timeout=60000
14:39:03,956 TRACE (OOB-1,NodeC-23789:) [InboundInvocationHandlerImpl] Calling perform() on ClusteredGetCommand{key=key-to-the-cache, flags=null}
14:39:03,956 TRACE (testng-DistSyncL1FuncTest:dist) [RpcManagerImpl] Response(s) to ClusteredGetCommand{key=key-to-the-cache, flags=null} is {NodeC-23789=SuccessfulResponse{responseValue=ImmortalCacheValue {value=second-put}} }
14:39:03,957 INFO (testng-DistSyncL1FuncTest:) [UnitTestTestNGListener] Starting test testRemoteGetArrivesButWriteOccursBeforeRegistration(org.infinispan.distribution.DistSyncL1FuncTest)
14:39:03,997 TRACE (OOB-2,NodeD-61213:dist) [BlockingInterceptor] Command blocking after completion of GetKeyValueCommand {key=key-to-the-cache, flags=[CACHE_MODE_LOCAL, SKIP_REMOTE_LOOKUP]}
{noformat}
The ClusteredGetCommand from this test doesn't block, and it returns the initial value immediately:
{noformat}
14:39:03,997 TRACE (OOB-1,NodeD-61213:dist) [BlockingInterceptor] Command arrived but already found a blocker
14:39:03,997 TRACE (OOB-1,NodeD-61213:) [InboundInvocationHandlerImpl] About to send back response SuccessfulResponse{responseValue=ImmortalCacheValue {value=first-put}} for command ClusteredGetCommand{key=key-to-the-cache, flags=null}
14:39:03,997 TRACE (transport-thread-NodeA-p13968-t3:dist) [RpcManagerImpl] Response(s) to ClusteredGetCommand{key=key-to-the-cache, flags=null} is {NodeD-61213=SuccessfulResponse{responseValue=ImmortalCacheValue {value=first-put}} }
{noformat}
The solution is to restart the caches after every test method.
> DistSyncL1FuncTest.testRemoteGetArrivesButWriteOccursBeforeRegistration random failures
> ---------------------------------------------------------------------------------------
>
> Key: ISPN-4231
> URL: https://issues.jboss.org/browse/ISPN-4231
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 7.0.0.Alpha3
> Reporter: Dan Berindei
> Assignee: William Burns
> Labels: testsuite_stability
> Fix For: 7.0.0.Alpha4
>
> Attachments: DistSyncL1FuncTest_t_4190_dont_loopback_m_20140424.log.gz
>
>
> {noformat}
> 14:39:04,037 ERROR (testng-DistSyncL1FuncTest:) [UnitTestTestNGListener] Test testRemoteGetArrivesButWriteOccursBeforeRegistration(org.infinispan.distribution.DistSyncL1FuncTest) failed.
> org.junit.ComparisonFailure: expected:<[second]-put> but was:<[first]-put>
> at org.junit.Assert.assertEquals(Assert.java:115)
> at org.junit.Assert.assertEquals(Assert.java:144)
> at org.infinispan.distribution.BaseDistSyncL1Test.testRemoteGetArrivesButWriteOccursBeforeRegistration(BaseDistSyncL1Test.java:342)
> {noformat}
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the infinispan-issues
mailing list