Bug 1468746

Summary: [GSS](6.4.z) Monthly file rotation will continually overwrite the rotated log file
Product: [JBoss] JBoss Enterprise Application Platform 6 Reporter: Brad Maxwell <bmaxwell>
Component: LoggingAssignee: James Perkins <jperkins>
Status: CLOSED CURRENTRELEASE QA Contact: Jiří Bílek <jbilek>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 6.4.16CC: brian.stansberry, cdewolf, deesharm, jperkins, jtruhlar, thofman, tmiyargi
Target Milestone: CR1   
Target Release: EAP 6.4.18   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-12-06 18:28:26 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: 1487274, 1463709, 1468748    

Description Brad Maxwell 2017-07-07 19:50:45 UTC
When the next rollover time is calculated a java.util.Calendar is used. When rotated monthly the day of the week is set to 0 and 1 month is added. This causes the calendar to be set to the last day of the current month.

On the last day of the month this also causes the file to continually rotate with each log message written, overwriting the previous log message.

Comment 6 Jiří Bílek 2017-10-18 14:35:07 UTC
Verified with EAP 6.4.18.CP.CR1

Comment 7 Jiri Truhlar 2017-11-01 12:58:31 UTC
Verified with EAP 6.4.18.CP.CR1

Comment 8 Petr Penicka 2017-12-06 18:28:26 UTC
Released on Nov 14 2017 as part of EAP 6.4.18.