[JBoss JIRA] (ISPN-2714) org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation test fails randomly
by Anna Manukyan (JIRA)
[ https://issues.jboss.org/browse/ISPN-2714?page=com.atlassian.jira.plugin.... ]
Anna Manukyan updated ISPN-2714:
--------------------------------
Status: Pull Request Sent (was: Open)
Git Pull Request: https://github.com/infinispan/infinispan/pull/1592
> org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation test fails randomly
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-2714
> URL: https://issues.jboss.org/browse/ISPN-2714
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Affects Versions: 5.2.0.CR1
> Reporter: Anna Manukyan
> Assignee: Anna Manukyan
> Labels: testsuite_stability
>
> The test org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation fails randomly on all environments.
> The error log is:
> {code}
> Error Message
> Expected exception java.util.concurrent.CancellationException but got java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> Stacktrace
> org.testng.TestException:
> Expected exception java.util.concurrent.CancellationException but got java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> at org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1503)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:764)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> at org.infinispan.distexec.mapreduce.SimpleTwoNodesMapReduceTest.testInvokeMapperCancellation(SimpleTwoNodesMapReduceTest.java:106)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
> ... 15 more
> {code}
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2714) org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation test fails randomly
by Anna Manukyan (JIRA)
[ https://issues.jboss.org/browse/ISPN-2714?page=com.atlassian.jira.plugin.... ]
Anna Manukyan commented on ISPN-2714:
-------------------------------------
Seems that the issue was just test thing - timing issue. The cancellation of the map reduce task was done with separate thread which probably was getting the priority to work before map reduce task execution start which was causing no task cancellation.
> org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation test fails randomly
> ---------------------------------------------------------------------------------------------------------------------
>
> Key: ISPN-2714
> URL: https://issues.jboss.org/browse/ISPN-2714
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Affects Versions: 5.2.0.CR1
> Reporter: Anna Manukyan
> Assignee: Anna Manukyan
> Labels: testsuite_stability
>
> The test org.infinispan.distexec.mapreduce.TopologyAwareTwoNodesMapReduceTest.testInvokeMapperCancellation fails randomly on all environments.
> The error log is:
> {code}
> Error Message
> Expected exception java.util.concurrent.CancellationException but got java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> Stacktrace
> org.testng.TestException:
> Expected exception java.util.concurrent.CancellationException but got java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> at org.testng.internal.Invoker.handleInvocationResults(Invoker.java:1503)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:764)
> at org.testng.internal.Invoker.invokeTestMethod(Invoker.java:907)
> at org.testng.internal.Invoker.invokeTestMethods(Invoker.java:1237)
> at org.testng.internal.TestMethodWorker.invokeTestMethods(TestMethodWorker.java:127)
> at org.testng.internal.TestMethodWorker.run(TestMethodWorker.java:111)
> at org.testng.TestRunner.privateRun(TestRunner.java:767)
> at org.testng.TestRunner.run(TestRunner.java:617)
> at org.testng.SuiteRunner.runTest(SuiteRunner.java:334)
> at org.testng.SuiteRunner.access$000(SuiteRunner.java:37)
> at org.testng.SuiteRunner$SuiteWorker.run(SuiteRunner.java:368)
> at org.testng.internal.thread.ThreadUtil$2.call(ThreadUtil.java:64)
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
> at java.util.concurrent.FutureTask.run(FutureTask.java:166)
> at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
> at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
> at java.lang.Thread.run(Thread.java:722)
> Caused by: java.lang.AssertionError: Mapper not cancelled, root cause org.jgroups.TimeoutException: timeout sending message to TopologyAwareTwoNodesMapReduceTest-NodeB-22523(test2)
> at org.infinispan.distexec.mapreduce.SimpleTwoNodesMapReduceTest.testInvokeMapperCancellation(SimpleTwoNodesMapReduceTest.java:106)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:601)
> at org.testng.internal.MethodInvocationHelper.invokeMethod(MethodInvocationHelper.java:80)
> at org.testng.internal.Invoker.invokeMethod(Invoker.java:715)
> ... 15 more
> {code}
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2744) Random failure in VersionedConditionalOperationsTest.testRemoveIfPresent
by Dan Berindei (JIRA)
Dan Berindei created ISPN-2744:
----------------------------------
Summary: Random failure in VersionedConditionalOperationsTest.testRemoveIfPresent
Key: ISPN-2744
URL: https://issues.jboss.org/browse/ISPN-2744
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 5.2.0.CR2
Reporter: Dan Berindei
Assignee: Galder Zamarreño
Fix For: 6.0.0.Final
The test does 2 sequential put operations from different nodes (1st put from node A, 2nd put from node B) and then checks that the last put value appears in both nodes.
However, the cache is configured with async commit phase, so the 1st tx's commit command can be executed on node B after the 2nd tx was already committed there:
{noformat}
00:32:01,165 TRACE (testng-VersionedConditionalOperationsTest:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(66b3cb0){key=key_1, value=value_1, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,191 TRACE (testng-VersionedConditionalOperationsTest:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(1af81e1){key=key_1, value=value_2, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,188 TRACE (OOB-1,ISPN,NodeB-21498:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(7e2a710c){key=key_1, value=value_1, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,198 TRACE (OOB-2,ISPN,NodeA-27406:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(61c63eff){key=key_1, value=value_2, oldValue=value_1, isCreated=false, isChanged=true, isRemoved=false, isValid=true}
{noformat}
The test should either use sync commit, or it should avoid checking consistency after a scenario like this.
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2743) Random failure in VersionedConditionalOperationsTest.testRemoveIfPresent
by Dan Berindei (JIRA)
Dan Berindei created ISPN-2743:
----------------------------------
Summary: Random failure in VersionedConditionalOperationsTest.testRemoveIfPresent
Key: ISPN-2743
URL: https://issues.jboss.org/browse/ISPN-2743
Project: Infinispan
Issue Type: Bug
Components: Test Suite
Affects Versions: 5.2.0.CR2
Reporter: Dan Berindei
Assignee: Galder Zamarreño
Fix For: 6.0.0.Final
The test does 2 sequential put operations from different nodes (1st put from node A, 2nd put from node B) and then checks that the last put value appears in both nodes.
However, the cache is configured with async commit phase, so the 1st tx's commit command can be executed on node B after the 2nd tx was already committed there:
{noformat}
00:32:01,165 TRACE (testng-VersionedConditionalOperationsTest:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(66b3cb0){key=key_1, value=value_1, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,191 TRACE (testng-VersionedConditionalOperationsTest:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(1af81e1){key=key_1, value=value_2, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,188 TRACE (OOB-1,ISPN,NodeB-21498:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(7e2a710c){key=key_1, value=value_1, oldValue=null, isCreated=true, isChanged=true, isRemoved=false, isValid=true}
00:32:01,198 TRACE (OOB-2,ISPN,NodeA-27406:___defaultcache) [EntryWrappingInterceptor] About to commit entry ClusteredRepeatableReadEntry(61c63eff){key=key_1, value=value_2, oldValue=value_1, isCreated=false, isChanged=true, isRemoved=false, isValid=true}
{noformat}
The test should either use sync commit, or it should avoid checking consistency after a scenario like this.
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2435) Cache#replace(key, old, new) method doesn't check old value on non-local invocations
by Sanne Grinovero (JIRA)
[ https://issues.jboss.org/browse/ISPN-2435?page=com.atlassian.jira.plugin.... ]
Sanne Grinovero commented on ISPN-2435:
---------------------------------------
[~anistor] I have an old test that I had given to Mircea, but it was failing because of a list of issues, not least it was the one highlighting the need for locking in order only the primary node.
Have a look into my github branch "ReplaceOperationStressTest"; it would fail for multiple reasons. I just rebased it but couldn't run it, no clue how it behaves today but I'm confident it will still fail, or Mircea would have resolved this ;)
I don't remember the full list but it was failing because of at least these bugs:
- it would return true even on failing compare operations
- if the key is not owned locally it would replace the value without checking for equality of _old_
- it would often deadlock (I believe this is solved with the new locking pattern implemented by Mircea after our design in Palma)
> Cache#replace(key, old, new) method doesn't check old value on non-local invocations
> ------------------------------------------------------------------------------------
>
> Key: ISPN-2435
> URL: https://issues.jboss.org/browse/ISPN-2435
> Project: Infinispan
> Issue Type: Bug
> Components: Core API, Distributed Cache
> Affects Versions: 5.1.8.Final, 5.2.0.Beta2
> Reporter: Sanne Grinovero
> Assignee: Mircea Markus
> Priority: Critical
> Fix For: 5.3.0.Final
>
>
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2740) NPE at AbstractEnlistmentAdapter
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-2740?page=com.atlassian.jira.plugin.... ]
Work on ISPN-2740 started by Adrian Nistor.
> NPE at AbstractEnlistmentAdapter
> --------------------------------
>
> Key: ISPN-2740
> URL: https://issues.jboss.org/browse/ISPN-2740
> Project: Infinispan
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 5.2.0.CR2
> Reporter: Thomas Fromm
> Assignee: Adrian Nistor
>
> Happens on local cache with pessimistic tx.
> ERROR 22.01.13 17:21:31,510 [IS-dev-blade-Node-1-MThread-1] DummyTransaction ISPN000111: afterCompletion() failed for SynchronizationAdapter{localTransaction=LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=null, backupKeyLocks=null, topologyId=-1, isFromStateTransfer=false} org.infinispan.transaction.synchronization.SyncLocalTransaction@fb} org.infinispan.transaction.synchronization.SynchronizationAdapter@11a
> java.lang.NullPointerException
> at org.infinispan.transaction.AbstractEnlistmentAdapter.mayHaveRemoteLocks(AbstractEnlistmentAdapter.java:96)
> at org.infinispan.transaction.AbstractEnlistmentAdapter.removeTransactionInfoRemotely(AbstractEnlistmentAdapter.java:86)
> at org.infinispan.transaction.AbstractEnlistmentAdapter.releaseLocksForCompletedTransaction(AbstractEnlistmentAdapter.java:82)
> at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:85)
> at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:285)
> at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:334)
> at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:91)
> at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:102)
> ...
--
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
11 years, 11 months
[JBoss JIRA] (ISPN-2740) NPE at AbstractEnlistmentAdapter
by Adrian Nistor (JIRA)
[ https://issues.jboss.org/browse/ISPN-2740?page=com.atlassian.jira.plugin.... ]
Adrian Nistor updated ISPN-2740:
--------------------------------
Fix Version/s: 5.2.0.Final
> NPE at AbstractEnlistmentAdapter
> --------------------------------
>
> Key: ISPN-2740
> URL: https://issues.jboss.org/browse/ISPN-2740
> Project: Infinispan
> Issue Type: Bug
> Components: Transactions
> Affects Versions: 5.2.0.CR2
> Reporter: Thomas Fromm
> Assignee: Adrian Nistor
> Fix For: 5.2.0.Final
>
>
> Happens on local cache with pessimistic tx.
> ERROR 22.01.13 17:21:31,510 [IS-dev-blade-Node-1-MThread-1] DummyTransaction ISPN000111: afterCompletion() failed for SynchronizationAdapter{localTransaction=LocalTransaction{remoteLockedNodes=null, isMarkedForRollback=false, lockedKeys=null, backupKeyLocks=null, topologyId=-1, isFromStateTransfer=false} org.infinispan.transaction.synchronization.SyncLocalTransaction@fb} org.infinispan.transaction.synchronization.SynchronizationAdapter@11a
> java.lang.NullPointerException
> at org.infinispan.transaction.AbstractEnlistmentAdapter.mayHaveRemoteLocks(AbstractEnlistmentAdapter.java:96)
> at org.infinispan.transaction.AbstractEnlistmentAdapter.removeTransactionInfoRemotely(AbstractEnlistmentAdapter.java:86)
> at org.infinispan.transaction.AbstractEnlistmentAdapter.releaseLocksForCompletedTransaction(AbstractEnlistmentAdapter.java:82)
> at org.infinispan.transaction.synchronization.SynchronizationAdapter.afterCompletion(SynchronizationAdapter.java:85)
> at org.infinispan.transaction.tm.DummyTransaction.notifyAfterCompletion(DummyTransaction.java:285)
> at org.infinispan.transaction.tm.DummyTransaction.runCommitTx(DummyTransaction.java:334)
> at org.infinispan.transaction.tm.DummyTransaction.commit(DummyTransaction.java:91)
> at org.infinispan.transaction.tm.DummyBaseTransactionManager.commit(DummyBaseTransactionManager.java:102)
> ...
--
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
11 years, 11 months