[JBoss JIRA] (ISPN-2629) Dist Exec testsuite fails in case of TopologyAware nodes.
by Anna Manukyan (JIRA)
[ https://issues.jboss.org/browse/ISPN-2629?page=com.atlassian.jira.plugin.... ]
Anna Manukyan commented on ISPN-2629:
-------------------------------------
BookSearchOnTopologyAwareNodesTest test fails with assertion failure on line 76. This assertion error is thrown in case when the search verification is done for the second node cache. I've added some printlns, and seems that data is not replicated to the second node cache, that's why this failure appears.
The most interesting thing is when I'm adding Cache c1 = cache(1, CACHE_NAME); after line 44, then the test is executed properly.
This is really strange, and I don't understand why this happens.
> Dist Exec testsuite fails in case of TopologyAware nodes.
> ---------------------------------------------------------
>
> Key: ISPN-2629
> URL: https://issues.jboss.org/browse/ISPN-2629
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Reporter: Anna Manukyan
> Assignee: Vladimir Blagojevic
> Attachments: DistributedExecutorWithTopologyAwareNodesTest.java, TEST-org.infinispan.distexec.DistributedExecutorWithTopologyAwareNodesTest.xml
>
>
> Many tests from dist exec test suite fail in case of TopologyAware nodes.
> It has been found that with both types of Cache configuration (old and new API), the issue appears.
> You can find the test and the stacktraces attached.
--
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
12 years
[JBoss JIRA] (ISPN-2629) Dist Exec testsuite fails in case of TopologyAware nodes.
by Anna Manukyan (JIRA)
[ https://issues.jboss.org/browse/ISPN-2629?page=com.atlassian.jira.plugin.... ]
Anna Manukyan commented on ISPN-2629:
-------------------------------------
OK, so for DistributedExecutorWithTopologyAwareNodesTest & ReplSyncDistributedExecutorWithTopologyAwareNodesTest classes, the following tests are failing:
testTaskCancellation() & testCancelAndGet() with the error:
Target node DistributedExecutorWithTopologyAwareNodesTest-Node^-48466(test2) is not a cluster member, members are [DistributedExecutorWithTopologyAwareNodesTest-Node]-49148(test1)]
The tests are failing also on Jenkins. I've looked/debugged the code a bit and seems that, in case of TopologyAware nodes, the rpcManager.getMembers() and rpcManager.getTransport().getMembers() return 2 different lists - the first one contains only the current node, and the 2nd one contains both nodes.
> Dist Exec testsuite fails in case of TopologyAware nodes.
> ---------------------------------------------------------
>
> Key: ISPN-2629
> URL: https://issues.jboss.org/browse/ISPN-2629
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Reporter: Anna Manukyan
> Assignee: Vladimir Blagojevic
> Attachments: DistributedExecutorWithTopologyAwareNodesTest.java, TEST-org.infinispan.distexec.DistributedExecutorWithTopologyAwareNodesTest.xml
>
>
> Many tests from dist exec test suite fail in case of TopologyAware nodes.
> It has been found that with both types of Cache configuration (old and new API), the issue appears.
> You can find the test and the stacktraces attached.
--
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
12 years
[JBoss JIRA] (ISPN-2552) Support concurrent updates for non-transactional caches
by Tristan Tarrant (JIRA)
[ https://issues.jboss.org/browse/ISPN-2552?page=com.atlassian.jira.plugin.... ]
Tristan Tarrant updated ISPN-2552:
----------------------------------
Status: Resolved (was: Pull Request Sent)
Resolution: Done
> Support concurrent updates for non-transactional caches
> --------------------------------------------------------
>
> Key: ISPN-2552
> URL: https://issues.jboss.org/browse/ISPN-2552
> Project: Infinispan
> Issue Type: Feature Request
> Affects Versions: 5.1.0.FINAL
> Reporter: Mircea Markus
> Assignee: Mircea Markus
> Priority: Blocker
> Fix For: 5.2.0.Beta6, 5.2.0.Final
>
>
> for non-transactional caches, when a key is updated, a local lock is acquired and also a lock on all the owning nodes as well. This is very inefficient for concurrent updates as it is very deadlock-prone.
> The following locking approach should solve this problem at the cost of an additional RPC:
> - 'k' is written on node A, owners(k)={B,C}
> - A forwards the given command to B
> - B acquires a lock on 'k' then it forwards it to the remaining owners: C
> - C applies the change and returns to B (no lock acquisition is needed)
> - B applies the result as well, releases the lock and returns the result of the operation to A.
> Note that even though this introduces an additional RPC (the forwarding), it behaves very well in conjunction with consistent-hash aware hotrod clients which connect directly to the lock owner.
--
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
12 years
[JBoss JIRA] (ISPN-2629) Dist Exec testsuite fails in case of TopologyAware nodes.
by Anna Manukyan (JIRA)
[ https://issues.jboss.org/browse/ISPN-2629?page=com.atlassian.jira.plugin.... ]
Anna Manukyan commented on ISPN-2629:
-------------------------------------
I'm getting mad already - when I was running the Dist exec & Map Reduce tests together, it is really 2 fails failing there (testTaskCancellation() & testCancelAndGet()). When I was running only TopologyAware tests, then there were 15 failures. Now even with separate run only these 2 tests are running :D
I've added more tests for ReplSync mode, as well as for MapReduce.
For MapReduce the BookSearchOnTopologyAwareNodesTest fails on the second iteration - and this happens always. For TopologyAwareTwoNodesMapReduceTest, testInvokeMapperCancellation() test is failing when I'm running the tests with bunch ( in case of separate run it succeeds).
You can find the tests here:
https://github.com/andyuk1986/infinispan/tree/DISTEXEC/core/src/test/java...
And I'll try to run them on Jenkins as well as will try to make some investigation.
Best regards,
Anna.
> Dist Exec testsuite fails in case of TopologyAware nodes.
> ---------------------------------------------------------
>
> Key: ISPN-2629
> URL: https://issues.jboss.org/browse/ISPN-2629
> Project: Infinispan
> Issue Type: Bug
> Components: Distributed Execution and Map/Reduce
> Reporter: Anna Manukyan
> Assignee: Vladimir Blagojevic
> Attachments: DistributedExecutorWithTopologyAwareNodesTest.java, TEST-org.infinispan.distexec.DistributedExecutorWithTopologyAwareNodesTest.xml
>
>
> Many tests from dist exec test suite fail in case of TopologyAware nodes.
> It has been found that with both types of Cache configuration (old and new API), the issue appears.
> You can find the test and the stacktraces attached.
--
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
12 years