qpid-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Rob Godfrey (JIRA)" <qpid-...@incubator.apache.org>
Subject [jira] Resolved: (QPID-2340) [Java] ProducerFlowControlTest failing due to race condition in test
Date Thu, 14 Jan 2010 16:14:54 GMT

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

Rob Godfrey resolved QPID-2340.
-------------------------------

    Resolution: Fixed

> [Java] ProducerFlowControlTest failing due to race condition in test
> --------------------------------------------------------------------
>
>                 Key: QPID-2340
>                 URL: https://issues.apache.org/jira/browse/QPID-2340
>             Project: Qpid
>          Issue Type: Bug
>          Components: Java Tests
>    Affects Versions: 0.6
>            Reporter: Rob Godfrey
>            Assignee: Rob Godfrey
>             Fix For: 0.7
>
>
> ProducerFlowControlTest occasionally fails with unexpected numbers of messages being
sent due to the fact that the test is based on sleeping for an amount of time, and assuming
that the flow control will have kicked in by then.  this is necessary as sending messages
cannot be made synchronous in 0-8.
> To fix, introduce a .sync() method on AMQSession and call this after sends in the test.
 This will ensure that any necessary flow control will have been enacted before the next client
operation is invoked.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


---------------------------------------------------------------------
Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:dev-subscribe@qpid.apache.org


Mime
View raw message