Bug 858912

Summary: Check if a stream is still open before flushing it
Product: [Fedora] Fedora Reporter: Amit Saha <asaha>
Component: python-concurrentloghandlerAssignee: Dan Callaghan <dcallagh>
Status: CLOSED ERRATA QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: dcallagh, ebaak, pingou
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-10-17 05:04:46 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:
Bug Depends On:    
Bug Blocks: 856850    
Description Flags
Proposed Patch none

Description Amit Saha 2012-09-20 02:14:55 UTC
Created attachment 614660 [details]
Proposed Patch

Description of problem:

The release method doesn't check if the stream is still open before flushing it. This is incompatible with Python 2.7, since the stream may have already been closed in the close() method. 

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


How reproducible:

Faced while using it in Beaker on Fedora 17. See https://bugzilla.redhat.com/show_bug.cgi?id=856850

Steps to Reproduce:
1. See above bug

Actual results:

Crashes the application citing cannot write to a closed file.

Expected results:

Sane shutdown of the logging system

Additional info:


Comment 1 Fedora Update System 2012-09-20 03:22:41 UTC
python-concurrentloghandler-0.8.4-7.fc18 has been submitted as an update for Fedora 18.

Comment 2 Fedora Update System 2012-09-20 03:23:18 UTC
python-concurrentloghandler-0.8.4-7.fc17 has been submitted as an update for Fedora 17.

Comment 3 Fedora Update System 2012-09-20 03:24:22 UTC
python-concurrentloghandler-0.8.4-7.fc16 has been submitted as an update for Fedora 16.

Comment 4 Fedora Update System 2012-09-22 00:12:12 UTC
Package python-concurrentloghandler-0.8.4-7.fc17:
* should fix your issue,
* was pushed to the Fedora 17 testing repository,
* should be available at your local mirror within two days.
Update it with:
# su -c 'yum update --enablerepo=updates-testing python-concurrentloghandler-0.8.4-7.fc17'
as soon as you are able to.
Please go to the following url:
then log in and leave karma (feedback).

Comment 5 Fedora Update System 2012-09-25 16:34:07 UTC
python-concurrentloghandler-0.8.4-7.fc18 has been pushed to the Fedora 18 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 6 Fedora Update System 2012-10-02 15:54:22 UTC
python-concurrentloghandler-0.8.4-7.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.

Comment 7 Dan Callaghan 2012-10-17 05:04:46 UTC
python-concurrentloghandler-0.8.4-7.fc17 is now stable.