Bug 1029442

Summary: [AMQP 1.0] closing connection after receiving exception for link detach can cause hang
Product: Red Hat Enterprise MRG Reporter: Gordon Sim <gsim>
Component: qpid-cppAssignee: Gordon Sim <gsim>
Status: CLOSED CURRENTRELEASE QA Contact: Petr Matousek <pematous>
Severity: unspecified Docs Contact:
Priority: medium    
Version: 3.0CC: esammons, iboverma, jross, pematous, pmoravec
Target Milestone: 3.0   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: qpid-cpp-0.22-26 Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2015-01-21 12:55:09 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 1010399    

Description Gordon Sim 2013-11-12 12:00:36 UTC
Description of problem:

If an exception is thrown e.g. while sending to a queue that is full, and if in the handling of that exception the application attempts to close the connection, that close() call can hang.

Version-Release number of selected component (if applicable):

Early Access

How reproducible:

Fairly easily

Steps to Reproduce:
1. qpid-config add queue q --max-queue-count 10
2. qpid-send --connection-options {protocol:amqp1.0} --messages 5000 --address q

Actual results:

qpid-send hangs on connection.close() after logging the exception

Expected results:

qpid-send exits after logging exception
Additional info:

Comment 1 Gordon Sim 2013-11-12 12:01:21 UTC
Fixed upstream: https://svn.apache.org/r1541001

Comment 2 Petr Matousek 2014-02-14 15:31:17 UTC
This issue has been fixed. Verified on rhel6.5 (x86_64, i386).

packages under test:
qpid-cpp-*-0.22-35

-> VERIFIED