Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 761186 - Java client mishandles tcp_nodelay when specified as part of the broker URL
Java client mishandles tcp_nodelay when specified as part of the broker URL
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-java (Show other bugs)
2.0
Unspecified Unspecified
medium Severity medium
: 2.1.2
: ---
Assigned To: Rajith Attapattu
ppecka
:
Depends On:
Blocks: 753238 783492
  Show dependency treegraph
 
Reported: 2011-12-07 15:33 EST by Justin Ross
Modified: 2012-04-30 13:53 EDT (History)
3 users (show)

See Also:
Fixed In Version: qpid-java-0.14-1.el5
Doc Type: Bug Fix
Doc Text:
Cause: JMS client incorrectly defaults to false when tcp_nodelay property is incorrectly specified in the connection URL. Consequence: The JMS client TCP-NODELAY setting defaults to false (Should be true). Fix: The code now use true as the default value when trying to parse the connection URL. Result: The client defaults to true even if there is any error in the connection URL.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-04-30 13:53:25 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2012:0529 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging 2.1 security and enhancement update 2012-04-30 17:48:25 EDT

  None (edit)
Description Justin Ross 2011-12-07 15:33:50 EST
See https://issues.apache.org/jira/browse/QPID-3659
Comment 1 Justin Ross 2011-12-07 15:53:48 EST
Fixed upstream at http://svn.apache.org/viewvc?view=rev&rev=1211611

Rajith, please provide verification steps.
Comment 2 Justin Ross 2011-12-08 10:06:29 EST
The upstream fix has two consequences: 1. it logs the state of the tcp_nodelay setting, and 2. it alters the handling of boolean properties in connection urls.
Comment 4 Rajith Attapattu 2012-01-18 16:46:37 EST
As for verification.

The client now defaults to tcp_nodelay=true if the user incorrectly specifies the value in the connection URL.

We also log the value of tcp_nodelay.

Verification is via visual inspection in debug mode.
Comment 5 ppecka 2012-02-17 03:50:32 EST
Verified on RHEL5, RHEL6:
except message is logged on "info" level
2012-02-12 20:12:30 info Set TCP_NODELAY on connection to [::1]:56647

# rpm -qa | grep qpid
qpid-tests-0.14-1.el6.noarch
rh-qpid-cpp-tests-0.14-6.el6.x86_64
qpid-java-common-0.14-1.el6.noarch
qpid-tools-0.14-1.el6.noarch
qpid-cpp-server-0.14-6.el6.x86_64
qpid-cpp-server-ssl-0.14-6.el6.x86_64
qpid-cpp-client-devel-docs-0.14-6.el6.noarch
qpid-jca-0.14-7.el6.noarch
qpid-cpp-client-0.14-6.el6.x86_64
qpid-cpp-client-ssl-0.14-6.el6.x86_64
qpid-qmf-0.14-3.el6.x86_64
qpid-cpp-server-rdma-0.14-6.el6.x86_64
qpid-cpp-server-store-0.14-6.el6.x86_64
ruby-qpid-0.7.946106-2.el6.x86_64
qpid-java-client-0.14-1.el6.noarch
python-qpid-qmf-0.14-3.el6.x86_64
qpid-cpp-server-cluster-0.14-6.el6.x86_64
qpid-cpp-server-devel-0.14-6.el6.x86_64
ruby-qpid-qmf-0.14-3.el6.x86_64
qpid-cpp-client-devel-0.14-6.el6.x86_64
qpid-qmf-devel-0.14-3.el6.x86_64
qpid-cpp-debuginfo-0.14-6.el6.x86_64
qpid-java-example-0.14-1.el6.noarch
qpid-cpp-client-rdma-0.14-6.el6.x86_64
python-qpid-0.14-3.el6.noarch
fence-virtd-libvirt-qpid-0.2.3-5.el6.x86_64
qpid-cpp-server-xml-0.14-6.el6.x86_64
Comment 7 Rajith Attapattu 2012-03-12 10:58:10 EDT
    Technical note added. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    New Contents:
Cause: JMS client incorrectly defaults to false when tcp_nodelay property is incorrectly specified in the connection URL.

Consequence:  The JMS client TCP-NODELAY setting defaults to false (Should be true).

Fix:  The code now use true as the default value when trying to parse the connection URL.

Result:  The client defaults to true even if there is any error in the connection URL.
Comment 8 errata-xmlrpc 2012-04-30 13:53:25 EDT
Since the problem described in this bug report should be
resolved in a recent advisory, it has been closed with a
resolution of ERRATA.

For information on the advisory, and where to find the updated
files, follow the link below.

If the solution does not work for you, open a new bug report.

http://rhn.redhat.com/errata/RHSA-2012-0529.html

Note You need to log in before you can comment on or make changes to this bug.