[jboss-jira] [JBoss JIRA] (JGRP-1921) Race condition in GroupRequest

Dennis Reed (JIRA) issues at jboss.org
Fri Mar 27 14:34:19 EDT 2015


Dennis Reed created JGRP-1921:
---------------------------------

             Summary: Race condition in GroupRequest
                 Key: JGRP-1921
                 URL: https://issues.jboss.org/browse/JGRP-1921
             Project: JGroups
          Issue Type: Bug
    Affects Versions: 2.6.23
            Reporter: Dennis Reed
            Assignee: Dennis Reed
            Priority: Minor


Race condition in GroupRequest can make it wait for the full timeout even after all responses are received.

GroupRequest.execute broadcasts the request, sets "done=false", then waits for a reply.
If all the replies come in before it sets done=false, it will overwrite the done=true set by the responses and wait for the full timeout, and then return false.

Note that the internal uses by MessageDispatcher/etc do not check the return value from execute, so this does not affect the data returned, only how long the call blocks for.



--
This message was sent by Atlassian JIRA
(v6.3.11#6341)


More information about the jboss-jira mailing list