Bug 50035 - Compress function keeps compressing compressed logs!
Summary: Compress function keeps compressing compressed logs!
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: logrotate
Version: 7.0
Hardware: i686
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Elliot Lee
QA Contact: Aaron Brown
URL: http://www.ultra-comm.com
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2001-07-26 07:16 UTC by Need Real Name
Modified: 2007-04-18 16:35 UTC (History)
1 user (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2004-06-28 16:58:09 UTC
Embargoed:


Attachments (Terms of Use)

Description Need Real Name 2001-07-26 07:16:47 UTC
From Bugzilla Helper:
User-Agent: Mozilla/4.0 (compatible; MSIE 5.5; Windows 98)

Description of problem:
This bug is was found in the logrotate utility when using the compress 
configuration specifically the interchange config file located in the 
logrotate.d/interchange which uses the compress function.  Logs located 
in /var/log/interchange were to be rotated and compressed.  Logs rotated 
would have the *.n apended fine. Comprssed logs would have the *.gz 
apended but after each rotation comoressed logs would be also rotated and 
re-compressed and no log limits are recogonized.  Unless manually deleted 
this files will keep growing until logrotate cannot hold all the files in 
memory and is unable to complete and unload from memory.  Session never 
ends and the server eventually crashes. Check it out you will notice a 
*.gz apended over an over on files after each rotation they will get a 
mile long and noting is ever deleted due to this bug.  Since there is only 
one rotation number on rotated logs I'm assuming the bug is in the 
compress logic module which is not looking back before the .gz for the 
rotation number and skiping rotations already compressed.

How reproducible:
Always

Steps to Reproduce:
1.configure a log rotation config file to rotate with compress.
2.for quicker results, rotate daily, and 2 to 4 rotations
3.Check the log folder after the last rotation you notice the results.
	

Actual Results:  each rotation with compress configured rotated, 
compressed and apended the .gz on the end.  Next rotation added re-
compressed each compressed file and added another .gz on the end and as a 
new file with the old still there.  

Additional info:

Comment 1 Elliot Lee 2001-12-28 19:58:15 UTC
Would you try the logrotate-3.5.9 in RHL 7.2 (or the logrotate-3.6 in RHL 8.0)
and see if this behaviour still occurs? There have been several
compression-related fixes since RHL 7.0.


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