From log4j-user-return-29397-archive-asf-public=cust-asf.ponee.io@logging.apache.org Tue Dec 17 13:14:09 2019 Return-Path: X-Original-To: archive-asf-public@cust-asf.ponee.io Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [207.244.88.153]) by mx-eu-01.ponee.io (Postfix) with SMTP id E4809180607 for ; Tue, 17 Dec 2019 14:14:08 +0100 (CET) Received: (qmail 21727 invoked by uid 500); 17 Dec 2019 13:14:07 -0000 Mailing-List: contact log4j-user-help@logging.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Help: List-Post: List-Id: "Log4J Users List" Reply-To: "Log4J Users List" Delivered-To: mailing list log4j-user@logging.apache.org Received: (qmail 21715 invoked by uid 99); 17 Dec 2019 13:14:07 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 17 Dec 2019 13:14:07 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id 63728C1DB9 for ; Tue, 17 Dec 2019 13:14:07 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.689 X-Spam-Level: X-Spam-Status: No, score=-0.689 tagged_above=-999 required=6.31 tests=[KAM_DMARC_STATUS=0.01, RCVD_IN_DNSWL_LOW=-0.7, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, URIBL_BLOCKED=0.001] autolearn=disabled Received: from mx1-he-de.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id 0QlSUxUXykvm for ; Tue, 17 Dec 2019 13:14:03 +0000 (UTC) Received-SPF: Pass (mailfrom) identity=mailfrom; client-ip=208.80.206.94; helo=smtp694.redcondor.net; envelope-from=ralph.goers@dslextreme.com; receiver= Received: from smtp694.redcondor.net (smtp694.redcondor.net [208.80.206.94]) by mx1-he-de.apache.org (ASF Mail Server at mx1-he-de.apache.org) with ESMTPS id 2B31C7DDD3 for ; Tue, 17 Dec 2019 13:14:02 +0000 (UTC) Received: from mailproxy13.neonova.net ([137.118.22.78]) by smtp694.redcondor.net ({c8ad8081-e921-4f15-9a53-034744fe478f}) via TCP (outbound) with ESMTP id 20191217131357910_0694 for ; Tue, 17 Dec 2019 13:13:57 +0000 X-RC-FROM: X-RC-RCPT: Received: from [192.168.1.179] (ip70-176-247-85.ph.ph.cox.net [70.176.247.85]) (Authenticated sender: ralph.goers@dslextreme.com) by mailproxy13.neonova.net (Postfix) with ESMTPA id 2694A365C88 for ; Tue, 17 Dec 2019 08:13:54 -0500 (EST) From: Ralph Goers Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable Mime-Version: 1.0 (Mac OS X Mail 13.0 \(3601.0.10\)) Subject: Re: Backwards incompatiable changes introduced in 2.13.0? Date: Tue, 17 Dec 2019 06:13:52 -0700 References: To: Log4J Users List In-Reply-To: Message-Id: <532878D3-3CD3-48A7-9581-5848131B2EA8@dslextreme.com> X-Mailer: Apple Mail (2.3601.0.10) X-DLP-OUTBOUND: 137.118.22.64/27 X-MAG-OUTBOUND: greymail.redcondor.net@137.118.22.64/27 Thanks for letting us know. I will check into this as soon as I can. Ralph > On Dec 17, 2019, at 5:21 AM, Brett Walker = wrote: >=20 > Hi List, >=20 >=20 > Prior to 2.13.0 I was shutting down Log4J2 using: >=20 > LogManager.shutdown(); >=20 >=20 > I had to do this to release files during a unit testing to release = locks on files. >=20 >=20 > After upgrading to 2.13.0 this broken some unit tests which were now = failing because test pre-conditions could not delete files due to them = having active locks. >=20 >=20 > I was able to resolve this by replacing the above with the following: >=20 > LogManager.shutdown(LogManager.getContext(false)); >=20 >=20 > I was able to determine that this change was introduced by LOG4J2-2716 = (253ada6ff2fb6c6a0dcfee8ed432372215f2ef78). >=20 >=20 > Is this change an intended consequence of LOG4J2-2716, or an = unforeseen side effect? >=20 > Will the FAQ need to be updated = (https://logging.apache.org/log4j/2.0/faq.html#shutdown)? >=20 >=20 > Brett Walker >=20 --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-user-unsubscribe@logging.apache.org For additional commands, e-mail: log4j-user-help@logging.apache.org