[infinispan-issues] [JBoss JIRA] (ISPN-4231) DistSyncL1FuncTest.testRemoteGetArrivesButWriteOccursBeforeRegistration random failures

William Burns (JIRA) issues at jboss.org
Thu Apr 24 09:30:35 EDT 2014


    [ https://issues.jboss.org/browse/ISPN-4231?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12963509#comment-12963509 ] 

William Burns commented on ISPN-4231:
-------------------------------------

Yeah READ_COMMITTED stores the Entry as a reference in the context.  Thus when the put updates the entry in the data container since it is the same reference the context sees a new value as well.

Looking at the log it appears it did do that...

{code}
14:39:04,037 TRACE (OOB-1,NodeC-23789:) [InboundInvocationHandlerImpl] About to send back response SuccessfulResponse{responseValue=ImmortalCacheValue {value=second-put}}  for command ClusteredGetCommand{key=key-to-the-cache, flags=null}
14:39:04,037 TRACE (OOB-2,NodeD-61213:) [InboundInvocationHandlerImpl] About to send back response SuccessfulResponse{responseValue=ImmortalCacheValue {value=second-put}}  for command ClusteredGetCommand{key=key-to-the-cache, flags=null}
{code}
                
> 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