logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 47575] New: GZipping large files stops logging
Date Fri, 24 Jul 2009 21:54:53 GMT
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@logging.apache.org
        ReportedBy: derek.libby@gmail.com


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@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message