Bugzilla will be upgraded to version 5.0. The upgrade date is tentatively scheduled for 2 December 2018, pending final testing and feedback.
Bug 507413 - Broker with single IO thread gets stuck looping if it runs out of file handles
Broker with single IO thread gets stuck looping if it runs out of file handles
Status: CLOSED ERRATA
Product: Red Hat Enterprise MRG
Classification: Red Hat
Component: qpid-cpp (Show other bugs)
1.1.1
All Linux
medium Severity medium
: 1.3
: ---
Assigned To: Andrew Stitcher
MRG Quality Engineering
:
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2009-06-22 13:13 EDT by Andrew Stitcher
Modified: 2010-10-14 12:11 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Due to missing "break" statement in the "catch" clause, a broker with a single I/O thread stopped responding to the SIGINT (interrupt) signal when it ran out of file handles. With this update, the relevant "catch" clause has been corrected, and brokers now respond to the interrupt signal as expected.
Story Points: ---
Clone Of:
Environment:
Last Closed: 2010-10-14 12:11:33 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)
Fix for bug (464 bytes, patch)
2009-06-22 22:18 EDT, Andrew Stitcher
no flags Details | Diff
Corrected (not reversed) patch (464 bytes, patch)
2009-06-22 22:43 EDT, Andrew Stitcher
no flags Details | Diff


External Trackers
Tracker ID Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2010:0773 normal SHIPPED_LIVE Moderate: Red Hat Enterprise MRG Messaging and Grid Version 1.3 2010-10-14 11:56:44 EDT

  None (edit)
Description Andrew Stitcher 2009-06-22 13:13:35 EDT
Description of problem:

If your run the C++ broker --worker-threads=1 and create enough connections to make the broker run out of sockets then the broker will no longer shutdown in respose to ^c or SIGINT.

How reproducible:

100%

Steps to Reproduce:

(untested steps, but I reproduced this in another test)

In one terminal:
ulimit -n 20
qpidd --port 21022 --auth no --worker-threads 1 --no-data-dir 


In 6 others:
perftest -p 21022

This should bew sufficient to run out of sockets. When this happens the broker will no longer stop if you use ^c on it.
Comment 1 Andrew Stitcher 2009-06-22 22:18:18 EDT
Created attachment 349025 [details]
Fix for bug
Comment 2 Andrew Stitcher 2009-06-22 22:20:18 EDT
This patch has been applied to qpidc-752581-19
Comment 3 Andrew Stitcher 2009-06-22 22:43:02 EDT
Created attachment 349029 [details]
Corrected (not reversed) patch
Comment 4 Andrew Stitcher 2009-06-24 17:39:44 EDT
This change has been applied to trunk too
Comment 7 Jaromir Hradilek 2010-10-07 12:32:21 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:
A broker with a single I/O thread no longer stops responding to the SIGINT (interrupt) signal when it runs out of file handles.
Comment 8 Douglas Silas 2010-10-11 05:32:31 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-A broker with a single I/O thread no longer stops responding to the SIGINT (interrupt) signal when it runs out of file handles.+A broker with a single I/O thread stopped responding to the SIGINT (interrupt) signal when it ran out of file handles.
Comment 9 Jaromir Hradilek 2010-10-13 12:36:30 EDT
    Technical note updated. If any revisions are required, please edit the "Technical Notes" field
    accordingly. All revisions will be proofread by the Engineering Content Services team.
    
    Diffed Contents:
@@ -1 +1 @@
-A broker with a single I/O thread stopped responding to the SIGINT (interrupt) signal when it ran out of file handles.+Due to missing "break" statement in the "catch" clause, a broker with a single I/O thread stopped responding to the SIGINT (interrupt) signal when it ran out of file handles. With this update, the relevant "catch" clause has been corrected, and brokers now respond to the interrupt signal as expected.
Comment 10 Andrew Stitcher 2010-10-13 14:11:09 EDT
Don't you think this tech note is unnecessarily detailed for an end user release note?
Comment 12 errata-xmlrpc 2010-10-14 12:11:33 EDT
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on therefore solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.

http://rhn.redhat.com/errata/RHSA-2010-0773.html

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