You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@qpid.apache.org by or...@apache.org on 2016/02/08 16:11:31 UTC
svn commit: r1729189 -
/qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java
Author: orudyy
Date: Mon Feb 8 15:11:31 2016
New Revision: 1729189
URL: http://svn.apache.org/viewvc?rev=1729189&view=rev
Log:
QPID-7052: In tests based on message number limit all consumed messages should be processed as normal reagrardless whether they arrive before or after StartDataCollectionCommand
Modified:
qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java
Modified: qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java
URL: http://svn.apache.org/viewvc/qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java?rev=1729189&r1=1729188&r2=1729189&view=diff
==============================================================================
--- qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java (original)
+++ qpid/java/trunk/perftests/src/main/java/org/apache/qpid/disttest/client/ConsumerParticipant.java Mon Feb 8 15:11:31 2016
@@ -179,13 +179,9 @@ public class ConsumerParticipant impleme
*/
private boolean processMessage(Message message)
{
- if (!_collectingData.get())
+ if (!_collectingData.get() && _expectedNumberOfMessages == 0)
{
// If we are performing a run with fixed number of messages we may receive a message before the startDataCollection command.
- if (_expectedNumberOfMessages > 0)
- {
- _totalNumberOfMessagesReceived.incrementAndGet();
- }
_jmsDelegate.commitOrAcknowledgeMessageIfNecessary(_command.getSessionName(), message);
return true;
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@qpid.apache.org
For additional commands, e-mail: commits-help@qpid.apache.org