Return-Path: X-Original-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-common-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 43284188BA for ; Thu, 10 Mar 2016 18:59:41 +0000 (UTC) Received: (qmail 66462 invoked by uid 500); 10 Mar 2016 18:59:41 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 66415 invoked by uid 500); 10 Mar 2016 18:59:41 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: common-issues@hadoop.apache.org Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 66296 invoked by uid 99); 10 Mar 2016 18:59:40 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Mar 2016 18:59:40 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id B8D352C1F5D for ; Thu, 10 Mar 2016 18:59:40 +0000 (UTC) Date: Thu, 10 Mar 2016 18:59:40 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HADOOP-12912) Add LOG.isDebugEnabled() guard in Progress.set method 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/HADOOP-12912?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15189741#comment-15189741 ] Mingliang Liu commented on HADOOP-12912: ---------------------------------------- I'm in favor of replacing log4j logger to slf4j here (as we're doing in other classes). Please refer to [HDFS-8971] I don't quite get the point of performance gain to add a guard here. Adding a guard brings no obvious difference as 1) the debug() parameters are string literal which are immutable. 2) the LOG.debug() should check the log level internally. Would you kindly explain in the description? > Add LOG.isDebugEnabled() guard in Progress.set method > ----------------------------------------------------- > > Key: HADOOP-12912 > URL: https://issues.apache.org/jira/browse/HADOOP-12912 > Project: Hadoop Common > Issue Type: Bug > Reporter: Tsuyoshi Ozawa > Assignee: Tsuyoshi Ozawa > Attachments: HADOOP-12912.001.patch > > -- This message was sent by Atlassian JIRA (v6.3.4#6332)