Bug 1274572
Summary: | [GSS](6.4.z) Log rotation fails on Windows if target already exists | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | James Livingston <jlivings> |
Component: | Logging | Assignee: | Panagiotis Sotiropoulos <psotirop> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikoleta Hlavickova <nziakova> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4.0 | CC: | andreas.lau, bbaranow, bmaxwell, brian.stansberry, istudens, jbilek, joallen, jperkins, psotirop |
Target Milestone: | CR1 | ||
Target Release: | EAP 6.4.10 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: |
Cause: NIO File.moveTo() has implementation/OS-specific behaviour, and what JBoss LogManager relied upon was not portable.
Consequence: Log file rotation fails on Windows if the target exists.
Fix: Use NIO Files.move() with the replacing option instead.
Result: Log files can be rotated correctly on Windows when the target file already exists.
|
Story Points: | --- |
Clone Of: | Environment: | ||
Last Closed: | 2017-01-17 12:58:19 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: | 1278806, 1339868 |
Description
James Livingston
2015-10-23 03:24:18 UTC
Posted PR to backport to the jboss-logmanager 1.5 branch, https://github.com/jboss-logging/jboss-logmanager/pull/90. If accepted, this bug can be fixed by upgrading to the next release. A work-around for this bug is to use a file suffix with more data, such as the much more common yyyy-MM-dd. Since the 1.5 logmanager stream relies on Java 6 the 2.x branch fix won't work. We'll need to first delete the file, then rename it to replicate the move/replace. Verified with EAP 6.4.10.CP.CR1 Retroactively bulk-closing issues from released EAP 6.4 cummulative patches. |