Bug 61829 - JMS Point-to-Point : If Receive Queue is empty and a timeout is set, it is not taken into account
Summary: JMS Point-to-Point : If Receive Queue is empty and a timeout is set, it is no...
Status: RESOLVED FIXED
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 3.3
Hardware: All All
: P2 enhancement (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-11-28 20:55 UTC by Philippe Mouawad
Modified: 2017-11-29 17:30 UTC (History)
1 user (show)



Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Mouawad 2017-11-28 20:55:21 UTC
This is due to usage of QueueExecutor which does not provide the feature.
Comment 1 Philippe Mouawad 2017-11-28 20:57:18 UTC
The provided patch also handles correctly the timeout in the following way:
- If set to 0, infinite
- If not set, default to 2s
- Otherwise taken into account as is

Currently 0 would be switch to default value 2s
Comment 2 Philippe Mouawad 2017-11-28 21:08:27 UTC
Author: pmouawad
Date: Tue Nov 28 21:06:45 2017
New Revision: 1816573

URL: http://svn.apache.org/viewvc?rev=1816573&view=rev
Log:
Bug 61829 - JMS Point-to-Point : If Receive Queue is empty and a timeout is set, it is not taken into account
Fixes also timeout == 0 is reset to 2s
Bugzilla Id: 61829

Added:
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/TimeoutEnabledQueueRequestor.java   (with props)
Modified:
    jmeter/trunk/bin/testfiles/JMS_TESTS.csv
    jmeter/trunk/bin/testfiles/JMS_TESTS.jmx
    jmeter/trunk/bin/testfiles/JMS_TESTS.xml
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/FixedQueueExecutor.java
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/JMSSampler.java
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/QueueExecutor.java
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/TemporaryQueueExecutor.java
    jmeter/trunk/xdocs/changes.xml
Comment 3 Philippe Mouawad 2017-11-29 17:30:46 UTC
Author: pmouawad
Date: Wed Nov 29 17:30:00 2017
New Revision: 1816642

URL: http://svn.apache.org/viewvc?rev=1816642&view=rev
Log:
Bug 61829 - JMS Point-to-Point : If Receive Queue is empty and a timeout is set, it is not taken into account
Fixes closing order and don't close session as it's closed by caller
Bugzilla Id: 61829

Modified:
    jmeter/trunk/src/protocol/jms/org/apache/jmeter/protocol/jms/sampler/TimeoutEnabledQueueRequestor.java