]
Dan Berindei updated ISPN-10922:
--------------------------------
Status: Open (was: New)
StateTransferLinkFailuresTest random failures
---------------------------------------------
Key: ISPN-10922
URL:
https://issues.jboss.org/browse/ISPN-10922
Project: Infinispan
Issue Type: Bug
Components: Test Suite - Core
Affects Versions: 10.0.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Labels: testsuite_stability
Fix For: 10.1.0.Beta1
{{StateTransferLinkFailuresTest.testLinkBrokenDuringStateTransfer()}} tests that xsite
state transfer eventually finishes when the link between sites is down. It simulates an
exception in {{backupRemotely()}} and waits for 1 minute for state transfer to finish.
The problem is that the default xsite state transfer retry configuration is to retry 30
times, waiting 2 seconds between retries. That means it's very possible the test will
give up waiting on state transfer to finish just before state transfer finishes.
{noformat}
21:43:02,524 DEBUG (transport-thread-Test-NodeA-p4484-t1:[]) [XSiteStateProviderImpl]
[X-Site State Transfer - NYC-2] start DataContainer iteration
21:43:02,564 DEBUG (transport-thread-Test-NodeA-p4484-t1:[]) [XSiteStateProviderImpl]
Sending chunk to site 'NYC-2'. Chunk contains [XSiteState{key=k_2, value=v_2,
metadata=EmbeddedMetadata{version=null}}, XSiteState{key=k_4, value=v_4,
metadata=EmbeddedMetadata{version=null}}]
21:44:02,579 TRACE (transport-thread-Test-NodeA-p4484-t1:[]) [RetryOnFailureXSiteCommand]
Exception Response received. Exception is org.infinispan.util.concurrent.TimeoutException:
induced timeout!
21:44:02,611 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.xsite.statetransfer.failures.StateTransferLinkFailuresTest.testLinkBrokenDuringStateTransfer[null,
tx=false]
java.lang.AssertionError:
at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?]
at org.testng.AssertJUnit.assertTrue(AssertJUnit.java:24) ~[testng-6.14.3.jar:?]
at
org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:250)
~[test-classes/:?]
at
org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:232)
~[test-classes/:?]
at
org.infinispan.test.AbstractInfinispanTest.eventually(AbstractInfinispanTest.java:208)
~[test-classes/:?]
at
org.infinispan.xsite.AbstractXSiteTest.assertEventuallyInSite(AbstractXSiteTest.java:193)
~[test-classes/:?]
at
org.infinispan.xsite.statetransfer.failures.StateTransferLinkFailuresTest.testLinkBrokenDuringStateTransfer(StateTransferLinkFailuresTest.java:89)
~[test-classes/:?]
{noformat}