You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Philip Harvey (JIRA)" <ji...@apache.org> on 2012/08/31 15:39:07 UTC

[jira] [Updated] (QPID-4275) Java Performance Tests - race condition between closing test consumer and test connection

     [ https://issues.apache.org/jira/browse/QPID-4275?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Philip Harvey updated QPID-4275:
--------------------------------

    Attachment: QPID-4275-now-releasing-participant-resources-befor.patch

Attached patch.

Now releasing participant resources before sending results to avoid race condition between consumer.close and connection.close. The latter is triggered by the TEAR_DOWN_TEST command send in response to sendResults.
                
> Java Performance Tests - race condition between closing test consumer and test connection
> -----------------------------------------------------------------------------------------
>
>                 Key: QPID-4275
>                 URL: https://issues.apache.org/jira/browse/QPID-4275
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Performance Tests
>            Reporter: Philip Harvey
>            Assignee: Philip Harvey
>            Priority: Minor
>             Fix For: 0.19
>
>         Attachments: QPID-4275-now-releasing-participant-resources-befor.patch
>
>
> In the new performance test framework, the ParticipantExecutor does these two things at the end when the participant has completed:
> # Send the results
> # Tell the participant to release its resources.
> When this is done in the order listed, the client may receive a TEAR_DOWN_TEST command, which causes the connection to be closed, while it is inside releseResources(). This provokes the client deadlock reported in QPID-TODO.

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

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@qpid.apache.org
For additional commands, e-mail: dev-help@qpid.apache.org