https://issues.apache.org/bugzilla/show_bug.cgi?id=47575
Summary: GZipping large files stops logging
Product: Log4j
Version: unspecified
Platform: PC
OS/Version: Linux
Status: NEW
Severity: normal
Priority: P2
Component: Appender
AssignedTo:
log4j-dev@logg...
ReportedBy:
derek.libby@gmai...
The following block:
synchronized (this) {
//
// if a previous async task is still running
//}
if (lastRolloverAsyncAction != null) {
//
// block until complete
//
lastRolloverAsyncAction.close();
//
// or don't block and return to rollover later
//
//if (!lastRolloverAsyncAction.isComplete()) return false;
}
from RolingFileAppender.java means that the next LoggingEvent which triggers a
TriggerPolicy::isTriggeringEvent after the gzip compression has begun will
cause all logging threads to block.
The:
if (lastRolloverAsyncAction != null) {
check should not be performed until the NEXT rollover is called for. That is
after:
if (rollover != null) {
--
Configure bugmail:
https://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.
---------------------------------------------------------------------
To unsubscribe, e-mail:
log4j-dev-unsubscribe@logg...
For additional commands, e-mail:
log4j-dev-help@logg...
opensubscriber is not affiliated with the authors of this message nor responsible for its content.