httpd-bugs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 26467] New: - 'graceful' kills 'rotatelogs', then hangs long-lived httpd children
Date Tue, 27 Jan 2004 17:02:27 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26467>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=26467

'graceful' kills 'rotatelogs', then hangs long-lived httpd children

           Summary: 'graceful' kills 'rotatelogs', then hangs long-lived
                    httpd children
           Product: Apache httpd-2.0
           Version: 2.0.48
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Normal
          Priority: Other
         Component: Core
        AssignedTo: bugs@httpd.apache.org
        ReportedBy: sussman@red-bean.com


A graceful restart SIGTERMs the 'rotatelogs' child, but a long-lived httpd
process may still be serving a connection via KeepAlive.  The httpd child
continues to write logdata into the pipe, but there's no process reading from
the pipe anymore.  Eventually the pipe fills up, and the httpd child just hangs.

This bug was discovered when doing a large Subversion commit with apache
configured to use piped logging to 'rotatelogs'.  It's a pretty common setup,
and it's likely to burn future Apache (and Subversion) users.

Joe Orton says, "To fix this properly, I suppose piped loggers should not get
SIGTERMedduring a graceful restart, they should read till EOF then exit(0): then
when the last child attached to the piped logger for a particular generation
quits, the pipe is closed and the piped logger terminates gracefully too,
without losing log messages."

Here's the complete mail thread:

   http://www.mail-archive.com/dev%40httpd.apache.org/msg19247.html

---------------------------------------------------------------------
To unsubscribe, e-mail: bugs-unsubscribe@httpd.apache.org
For additional commands, e-mail: bugs-help@httpd.apache.org


Mime
View raw message