Return-Path: X-Original-To: apmail-spark-issues-archive@minotaur.apache.org Delivered-To: apmail-spark-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D0A0110816 for ; Fri, 5 Jun 2015 10:45:00 +0000 (UTC) Received: (qmail 54646 invoked by uid 500); 5 Jun 2015 10:45:00 -0000 Delivered-To: apmail-spark-issues-archive@spark.apache.org Received: (qmail 54585 invoked by uid 500); 5 Jun 2015 10:45:00 -0000 Mailing-List: contact issues-help@spark.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list issues@spark.apache.org Received: (qmail 54575 invoked by uid 99); 5 Jun 2015 10:45:00 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 05 Jun 2015 10:45:00 +0000 Date: Fri, 5 Jun 2015 10:45:00 +0000 (UTC) From: "Cheng Lian (JIRA)" To: issues@spark.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (SPARK-8122) ParquetRelation.enableLogForwarding() may fail to configure loggers MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/SPARK-8122?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14574291#comment-14574291 ] Cheng Lian commented on SPARK-8122: ----------------------------------- Hm, just noticed that the logger created in the static initialization block of {{org.apache.parquet.Log}} is also a local variable. Not quite sure about the lifetime of a local variable appeared in a static initialization block though, assuming it behaves the same as other local variable, namely it goes out of scope out of the static block. Seems that this makes both {{ParquetRelation.enableLogForwarding()}} and Parquet itself suffer from the GC issue? > ParquetRelation.enableLogForwarding() may fail to configure loggers > ------------------------------------------------------------------- > > Key: SPARK-8122 > URL: https://issues.apache.org/jira/browse/SPARK-8122 > Project: Spark > Issue Type: Sub-task > Components: SQL > Affects Versions: 1.5.0 > Reporter: Konstantin Shaposhnikov > Priority: Minor > > _enableLogForwarding()_ doesn't hold to the created loggers that can be garbage collected and all configuration changes will be gone. From https://docs.oracle.com/javase/6/docs/api/java/util/logging/Logger.html javadocs: _It is important to note that the Logger returned by one of the getLogger factory methods may be garbage collected at any time if a strong reference to the Logger is not kept._ > All created logger references need to be kept, e.g. in static variables. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org For additional commands, e-mail: issues-help@spark.apache.org