logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gary Gregory (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (LOG4J2-1020) GzCompressAction leaves files open when an IO error takes place
Date Sun, 17 May 2015 05:14:59 GMT

     [ https://issues.apache.org/jira/browse/LOG4J2-1020?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gary Gregory updated LOG4J2-1020:
---------------------------------
    Description: The class {{org.apache.logging.log4j.core.appender.rolling.action.GzCompressAction}}
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.  (was: 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.)

> GzCompressAction leaves files open when an IO error takes place
> ---------------------------------------------------------------
>
>                 Key: LOG4J2-1020
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-1020
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: Appenders, Core
>    Affects Versions: 2.3
>         Environment: Apache Maven 3.3.3 (7994120775791599e205a5524ec3e0dfe41d4a06; 2015-04-22T04:57:37-07:00)
> Maven home: C:\Java\apache-maven-3.3.3
> Java version: 1.7.0_79, vendor: Oracle Corporation
> Java home: C:\Program Files\Java\jdk1.7.0_79\jre
> Default locale: en_US, platform encoding: Cp1252
> OS name: "windows 7", version: "6.1", arch: "amd64", family: "windows"
>            Reporter: Gary Gregory
>             Fix For: 2.4
>
>
> The class {{org.apache.logging.log4j.core.appender.rolling.action.GzCompressAction}}
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.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

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