[infinispan-issues] [JBoss JIRA] (ISPN-8616) DistAsyncFuncTest.testMergeFromNonOwner random failures
Dan Berindei (Jira)
issues at jboss.org
Mon Oct 8 18:03:00 EDT 2018
[ https://issues.jboss.org/browse/ISPN-8616?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dan Berindei reopened ISPN-8616:
--------------------------------
Assignee: Dan Berindei (was: Radim Vansa)
I saw the failure again on master. The problem seems to be that {{resetEagerCommands()}} can run before all of a test method's asynchronous commands have finished executing:
{noformat}
19:26:44,888 DEBUG (testng-Test:[]) [TestSuiteProgress] Test configuration finished: org.infinispan.distribution.DistAsyncFuncTest.resetEagerCommands
19:26:44,890 DEBUG (remote-thread-Test-NodeD-p8114-t1:[]) [ReplListener] [Test-NodeD-22728] ReplListener saw command PutKeyValueCommand{key=k3, value=value3-changed, flags=[SKIP_LOCKING, IGNORE_RETURN_VALUES], commandInvocationId=CommandInvocation:Test-NodeB-52740:8912, putIfAbsent=false, valueMatcher=MATCH_ALWAYS, metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1, version=null}, successful=true, topologyId=13}
19:26:44,902 INFO (testng-Test:[]) [TestSuiteProgress] Test starting: org.infinispan.distribution.DistAsyncFuncTest.testMergeFromNonOwner[DIST_ASYNC, tx=false]
19:26:45,032 DEBUG (testng-Test:[]) [ReplListener] [Test-NodeD-22728] Waiting for 1 command(s)
19:26:45,032 DEBUG (testng-Test:[]) [ReplListener] [Test-NodeD-22728] Matched command PutKeyValueCommand{key=k3, value=value3-changed, flags=[SKIP_LOCKING, IGNORE_RETURN_VALUES], commandInvocationId=CommandInvocation:Test-NodeB-52740:8912, putIfAbsent=false, valueMatcher=MATCH_ALWAYS, metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1, version=null}, successful=true, topologyId=13}
19:26:45,035 DEBUG (remote-thread-Test-NodeD-p8114-t3:[]) [ReplListener] [Test-NodeD-22728] ReplListener saw command PutKeyValueCommand{key=k1, value=value, flags=[SKIP_LOCKING, IGNORE_RETURN_VALUES], commandInvocationId=CommandInvocation:Test-NodeA-34864:9015, putIfAbsent=false, valueMatcher=MATCH_ALWAYS, metadata=EmbeddedExpirableMetadata{lifespan=-1, maxIdle=-1, version=null}, successful=true, topologyId=13}
19:26:45,035 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed: org.infinispan.distribution.DistAsyncFuncTest.testMergeFromNonOwner[DIST_ASYNC, tx=false]
java.lang.AssertionError: Fail on owner cache Test-NodeD-22728: dc.get(k1) returned null
at org.infinispan.distribution.BaseDistFunctionalTest.assertOwnershipAndNonOwnership(BaseDistFunctionalTest.java:191) ~[test-classes/:?]
at org.infinispan.distribution.BaseDistFunctionalTest.assertOnAllCachesAndOwnership(BaseDistFunctionalTest.java:162) ~[test-classes/:?]
at org.infinispan.distribution.BaseDistFunctionalTest.initAndTest(BaseDistFunctionalTest.java:142) ~[test-classes/:?]
at org.infinispan.distribution.DistSyncFuncTest.testMergeFromNonOwner(DistSyncFuncTest.java:387) ~[test-classes/:?]
{noformat}
> DistAsyncFuncTest.testMergeFromNonOwner random failures
> -------------------------------------------------------
>
> Key: ISPN-8616
> URL: https://issues.jboss.org/browse/ISPN-8616
> Project: Infinispan
> Issue Type: Bug
> Components: Test Suite - Core
> Affects Versions: 9.2.0.Beta1
> Reporter: Dan Berindei
> Assignee: Dan Berindei
> Priority: Major
> Labels: testsuite_stability
> Fix For: 10.0.0.Final
>
>
> {noformat}
> java.lang.AssertionError: Fail on owner cache DistAsyncFuncTest[DIST_ASYNC, tx=false]-NodeA-42474: dc.get(k1) returned null
> at org.infinispan.distribution.BaseDistFunctionalTest.assertOwnershipAndNonOwnership(BaseDistFunctionalTest.java:191)
> at org.infinispan.distribution.BaseDistFunctionalTest.assertOnAllCachesAndOwnership(BaseDistFunctionalTest.java:162)
> at org.infinispan.distribution.BaseDistFunctionalTest.initAndTest(BaseDistFunctionalTest.java:142)
> at org.infinispan.distribution.DistSyncFuncTest.testMergeFromNonOwner(DistSyncFuncTest.java:387)
> {noformat}
> The test method is new and the interceptors have changed, but it's probably the same problem with {{asyncWait}} signaled in ISPN-3741. I commented out the entire implementation of {{asyncWait}} in {{DistAsyncFuncTest}} and it still passed when run by itself, so we need a way to delay the commands and check that the test is not sensitive to such delays.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the infinispan-issues
mailing list