[infinispan-issues] [JBoss JIRA] (ISPN-8257) BackupForStateTransferTest.testStateTransferWithClusterIdle random failures

Pedro Ruivo (JIRA) issues at jboss.org
Mon Sep 4 12:35:00 EDT 2017


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

Pedro Ruivo commented on ISPN-8257:
-----------------------------------

* Possible cause:
Since the "{{finish state transfer}}" command is sent asynchronously to the receiver site, it is possible that the test thread will check the state before the command is received. 
* Possible fix:
Change to {{assertEventuallyInSite()}} as in {{BaseStateTransferTest#assertEventuallyNoStateTransferInReceivingSite()}}

> BackupForStateTransferTest.testStateTransferWithClusterIdle random failures
> ---------------------------------------------------------------------------
>
>                 Key: ISPN-8257
>                 URL: https://issues.jboss.org/browse/ISPN-8257
>             Project: Infinispan
>          Issue Type: Bug
>    Affects Versions: 9.1.0.Final
>            Reporter: Galder Zamarreño
>            Assignee: Pedro Ruivo
>              Labels: testsuite_stability
>
> http://ci.infinispan.org/job/Infinispan/job/master/118/testReport/junit/org.infinispan.xsite.statetransfer/BackupForStateTransferTest/testStateTransferWithClusterIdle_null__tx_false_/
> {code}
> java.lang.AssertionError: 
> 	at org.infinispan.xsite.statetransfer.BackupForStateTransferTest$6.assertInCache(BackupForStateTransferTest.java:138)
> 	at org.infinispan.xsite.AbstractXSiteTest.assertInSite(AbstractXSiteTest.java:178)
> 	at org.infinispan.xsite.statetransfer.BackupForStateTransferTest.assertNoStateTransferInReceivingSite(BackupForStateTransferTest.java:133)
> 	at org.infinispan.xsite.statetransfer.BackupForStateTransferTest.testStateTransferWithClusterIdle(BackupForStateTransferTest.java:94)
> 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
> 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
> 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
> 	at java.lang.Thread.run(Thread.java:748)
> ... Removed 20 stack frames
> {code}



--
This message was sent by Atlassian JIRA
(v7.2.3#72005)



More information about the infinispan-issues mailing list