[infinispan-issues] [JBoss JIRA] (ISPN-3744) TopologyAwareTwoNodesMapReduceTest random failures

Dan Berindei (JIRA) jira-events at lists.jboss.org
Wed Nov 20 13:16:07 EST 2013


Dan Berindei created ISPN-3744:
----------------------------------

             Summary: TopologyAwareTwoNodesMapReduceTest random failures
                 Key: ISPN-3744
                 URL: https://issues.jboss.org/browse/ISPN-3744
             Project: Infinispan
          Issue Type: Bug
          Components: Test Suite
    Affects Versions: 6.0.0.Final
            Reporter: Dan Berindei
            Assignee: Dan Berindei


The static counter used in FailAfterSecondCallReducer in TopologyAwareTwoNodesMapReduceTest.testInvokeMapWithReduceExceptionPhaseInRemoteExecution and SimpleTwoNodesMapReduceTest.testInvokeMapWithReduceExceptionPhaseInRemoteExecution has several problems:

1. Both tests use the same counter, if they run in parallel one could reset the counter for the other.
2. The counter update is not atomic, so the async thread that executes the reducer on the originator and the remote executor thread that executes the reducer on the remote node can both see value 0.
3. There is no guarantee that the reducer is executed on the originator first, so the exception isn't always thrown on the remote node.


--
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


More information about the infinispan-issues mailing list