Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-1019

ZipCompressAction leaves files open until GC when an IO error takes place

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.3
    • Fix Version/s: 2.4
    • Component/s: Appenders, Core
    • Labels:
      None
    • Environment:

      Description

      The class org.apache.logging.log4j.core.appender.rolling.action.ZipCompressAction leaves files open when an IO error takes place. Since FileInputStream and FileOutputStream have finalize() methods, the JVM should eventually close the appropriate resources though, but perhaps not before the files left open cause other problems.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                garydgregory Gary Gregory
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: