You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Ralph Goers (Jira)" <ji...@apache.org> on 2020/02/17 23:48:00 UTC

[jira] [Resolved] (LOG4J2-2746) Change in shutdown behaviour between 2.12.1 and 2.13.0

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

Ralph Goers resolved LOG4J2-2746.
---------------------------------
    Fix Version/s: 2.13.1
       Resolution: Fixed

Fix has been applied. Please verify and close.

> Change in shutdown behaviour between 2.12.1 and 2.13.0
> ------------------------------------------------------
>
>                 Key: LOG4J2-2746
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2746
>             Project: Log4j 2
>          Issue Type: Bug
>          Components: API
>    Affects Versions: 2.13.0
>         Environment: {noformat}
> Apache Maven 3.6.2;
> Java version: 11.0.5, vendor: AdoptOpenJDK;
> Default locale: en_AU, platform encoding: Cp1252;
> OS name: "windows 10", version: "10.0", arch: "amd64", family: "windows"{noformat}
>            Reporter: Brett Walker
>            Assignee: Ralph Goers
>            Priority: Minor
>             Fix For: 2.13.1
>
>         Attachments: Log4J Shutdown Example.zip
>
>
> The attached mavenised example demonstrated the observed behaviour.
> In essence the following is observed:
> {code:java}
> // Shutdown Log4J2
> LogManager.shutdown(); // line 1
> // LogManager.shutdown(LogManager.getContext(false)); // line 2
> Files.delete(logFile); // line 3
>  
> {code}
> Using line 1; line 3 above should execute with no exceptions. For v2.12.1 this is observed. For v2.13.0; line 3 throws an exception because the logFile has a open lock still active.
> When line 2 is substituted for line 1. Line 3 executes with no exception for both v2.12.1 and v2.13.0
> I was able to determine that this behavior change was introduced by LOG4J2-2716 (253ada6ff2fb6c6a0dcfee8ed432372215f2ef78).



--
This message was sent by Atlassian Jira
(v8.3.4#803005)