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: [email protected]
        ReportedBy: [email protected]


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: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to