[
https://issues.redhat.com/browse/ISPN-11296?page=com.atlassian.jira.plugi...
]
Dan Berindei commented on ISPN-11296:
-------------------------------------
The test still throws the exception from time to time after the fix.
When I added {{@Test(invocationCount=100)}} to the method I also got a failure after the
uncaught exception, cf.
https://issues.redhat.com/browse/ISPN-8240?focusedCommentId=13455440&...
{noformat}
13:33:30,445 ERROR (testng-Test:[]) [TestSuiteProgress] Test failed:
org.infinispan.distribution.rehash.StateResponseOrderingTest.testStateResponseWhileRestartingBrokenTransfers
java.lang.AssertionError: expected:<v1> but was:<null>
at org.testng.AssertJUnit.fail(AssertJUnit.java:59) ~[testng-6.14.3.jar:?]
at org.testng.AssertJUnit.failNotEquals(AssertJUnit.java:364) ~[testng-6.14.3.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:80) ~[testng-6.14.3.jar:?]
at org.testng.AssertJUnit.assertEquals(AssertJUnit.java:88) ~[testng-6.14.3.jar:?]
at
org.infinispan.distribution.rehash.StateResponseOrderingTest.testStateResponseWhileRestartingBrokenTransfers(StateResponseOrderingTest.java:238)
~[test-classes/:?]
{noformat}
StateResponseOrderingTest uncaught IllegalArgumentException
-----------------------------------------------------------
Key: ISPN-11296
URL:
https://issues.redhat.com/browse/ISPN-11296
Project: Infinispan
Issue Type: Bug
Components: Core, Test Suite
Affects Versions: 10.1.1.Final
Reporter: Dan Berindei
Assignee: Dan Berindei
Priority: Major
Fix For: 11.0.0.Dev03
I think initially I wanted {{MatchCountMatcher}} to count from 1 and handle {{matchCount
== 0}} as matching all invocations. All the callers now assume 0 is the first invocation,
but the code kept working because the exception was not caught.
{noformat}
java.lang.IllegalStateException: State st:after_first_state_response exited twice
at org.infinispan.test.concurrent.StateSequencer.exit(StateSequencer.java:242)
at org.infinispan.test.concurrent.StateSequencer.advance(StateSequencer.java:316)
at
org.infinispan.test.concurrent.StateSequencerUtil.advanceMultiple(StateSequencerUtil.java:103)
at
org.infinispan.test.concurrent.InboundRpcSequencerAction$SequencerPerCacheInboundInvocationHandler.advance(InboundRpcSequencerAction.java:101)
at
org.infinispan.test.concurrent.InboundRpcSequencerAction$SequencerPerCacheInboundInvocationHandler.lambda$handle$0(InboundRpcSequencerAction.java:82)
at
org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.invokedComplete(BaseBlockingRunnable.java:130)
at
org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.invoke(BaseBlockingRunnable.java:111)
at
org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.runAsync(BaseBlockingRunnable.java:72)
at
org.infinispan.remoting.inboundhandler.BaseBlockingRunnable.run(BaseBlockingRunnable.java:41)
at
java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
at
java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
at java.base/java.lang.Thread.run(Thread.java:834)
{noformat}
--
This message was sent by Atlassian Jira
(v7.13.8#713008)