opensubscriber
   Find in this group all groups
 
Unknown more information…

l : log4j-dev@logging.apache.org 25 July 2009 • 5:54AM -0400

DO NOT REPLY [Bug 47575] New: GZipping large files stops logging
by bugzilla

REPLY TO AUTHOR
 
REPLY TO GROUP




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...

Bookmark with:

Delicious   Digg   reddit   Facebook   StumbleUpon

Related Messages

opensubscriber is not affiliated with the authors of this message nor responsible for its content.