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

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

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.3
    • 2.4
    • Appenders, Core
    • None

    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

              Unassigned Unassigned
              ggregory Gary D. Gregory
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: