Return-Path: X-Original-To: apmail-hadoop-hdfs-issues-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-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 12D9610BFF for ; Mon, 2 Mar 2015 22:31:28 +0000 (UTC) Received: (qmail 67811 invoked by uid 500); 2 Mar 2015 22:31:05 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 67757 invoked by uid 500); 2 Mar 2015 22:31:05 -0000 Mailing-List: contact hdfs-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: hdfs-issues@hadoop.apache.org Delivered-To: mailing list hdfs-issues@hadoop.apache.org Received: (qmail 67745 invoked by uid 99); 2 Mar 2015 22:31:05 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 02 Mar 2015 22:31:05 +0000 Date: Mon, 2 Mar 2015 22:31:05 +0000 (UTC) From: "Brahma Reddy Battula (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-7757) Misleading error messages in FSImage.java 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/HDFS-7757?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14343906#comment-14343906 ] Brahma Reddy Battula commented on HDFS-7757: -------------------------------------------- Thanks a lot for review..Corrected this one also.. > Misleading error messages in FSImage.java > ----------------------------------------- > > Key: HDFS-7757 > URL: https://issues.apache.org/jira/browse/HDFS-7757 > Project: Hadoop HDFS > Issue Type: Improvement > Components: namenode > Affects Versions: 2.6.0 > Reporter: Arpit Agarwal > Assignee: Brahma Reddy Battula > Attachments: HDFS-7757-002.patch, HDFS-7757.patch > > > If a quota violation is detected while loading an image, the NameNode logs scary error messages indicating a bug. However the quota violation state is very easy to get into e.g. > # Copy a 2MB file to a directory. > # Set a disk space quota of 1MB on the directory. We are in quota violation state now. > We should reword the error messages, ideally making them warnings and suggesting the administrator needs to fix the quotas: > Relevant code: > {code} > LOG.error("BUG: Diskspace quota violation in image for " > + dir.getFullPathName() > + " quota = " + dsQuota + " < consumed = " + diskspace); > ... > LOG.error("BUG Disk quota by storage type violation in image for " > + dir.getFullPathName() > + " type = " + t.toString() + " quota = " > + typeQuota + " < consumed " + typeSpace); > {code} -- This message was sent by Atlassian JIRA (v6.3.4#6332)