Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 8A0BB200B85 for ; Wed, 31 Aug 2016 23:06:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 88D7C160AA7; Wed, 31 Aug 2016 21:06:22 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id D2129160AB4 for ; Wed, 31 Aug 2016 23:06:21 +0200 (CEST) Received: (qmail 26990 invoked by uid 500); 31 Aug 2016 21:06:20 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 26970 invoked by uid 99); 31 Aug 2016 21:06:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 31 Aug 2016 21:06:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id AEBBF2C1B81 for ; Wed, 31 Aug 2016 21:06:20 +0000 (UTC) Date: Wed, 31 Aug 2016 21:06:20 +0000 (UTC) From: "Mingliang Liu (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10713) Throttle FsNameSystem lock warnings MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 31 Aug 2016 21:06:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10713?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15453359#comment-15453359 ] Mingliang Liu commented on HDFS-10713: -------------------------------------- {code:title=DFSConfigKeys.java} 414 // Threshold for how long the write lock warnings must be suppressed 415 public static final String DFS_LOCK_SUPPRESS_WARNING_INTERVAL_MS_KEY = 416 "dfs.lock.suppress.warning.interval.ms"; 417 public static final long DFS_LOCK_SUPPRESS_WARNING_INTERVAL_MS_DEFAULT = 418 120000L; {code} And {code:title=hdfs-default.xml} 2626 2627 dfs.lock.suppress.warning.interval.ms 2628 1000 2629 The interval between reporting lock warnings. 2630 2631 2632 {code} I believe the default value of config key {{dfs.lock.suppress.warning.interval.ms}} is 2 mins not 1 second? Minor comments: In line 1571, message {{"Number of suppressed write-lock reports: " + numSuppressedWarnings);}} should have a "\n" or "\t" before it. > Throttle FsNameSystem lock warnings > ----------------------------------- > > Key: HDFS-10713 > URL: https://issues.apache.org/jira/browse/HDFS-10713 > Project: Hadoop HDFS > Issue Type: Bug > Components: logging, namenode > Reporter: Arpit Agarwal > Assignee: Hanisha Koneru > Attachments: HDFS-10713.000.patch, HDFS-10713.001.patch, HDFS-10713.002.patch > > > The NameNode logs a message if the FSNamesystem write lock is held by a thread for over 1 second. These messages can be throttled to at one most one per x minutes to avoid potentially filling up NN logs. We can also log the number of suppressed notices since the last log message. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org