Bug 1196228
Summary: | [GSS] (6.4.z) ConsoleAppenders can deadlock if included in application log4j configs | ||
---|---|---|---|
Product: | [JBoss] JBoss Enterprise Application Platform 6 | Reporter: | Aaron Ogburn <aogburn> |
Component: | Logging | Assignee: | Lin Gao <lgao> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Nikoleta Hlavickova <nziakova> |
Severity: | unspecified | Docs Contact: | |
Priority: | unspecified | ||
Version: | 6.4.0 | CC: | bbaranow, bmaxwell, cdewolf, chaowan, csutherl, jawilson, joallen, lgao, sfikes |
Target Milestone: | CR1 | ||
Target Release: | EAP 6.4.2 | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 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: | 1211155, 1219165 |
Description
Aaron Ogburn
2015-02-25 14:24:18 UTC
Work around is to not use ConsoleAppenders in app log4js or them in async appender/handlers. We'd have to fork the ConsoleAppender to make this work properly since each append invocation uses System.xxx.write(). We'd need to update it to capture System.out and System.err in a static variable to ensure it would work correctly. If we don't want to go for a ConsoleAppender fork to resolve the deadlock, perhaps we can at least add a warn to notify that a deadlock is likely with the application level ConsoleAppender? Verified with EAP 6.4.2.CP.CR1 using attached reproducer. Retroactively bulk-closing issues from released EAP 6.4 cumulative patches. Retroactively bulk-closing issues from released EAP 6.4 cumulative patches. |