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 7E402200B91 for ; Thu, 15 Sep 2016 04:21:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 7CD96160AD4; Thu, 15 Sep 2016 02:21: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 BEBC0160AB4 for ; Thu, 15 Sep 2016 04:21:21 +0200 (CEST) Received: (qmail 5640 invoked by uid 500); 15 Sep 2016 02:21: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 5622 invoked by uid 99); 15 Sep 2016 02:21:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 15 Sep 2016 02:21:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 91DAB2C0D56 for ; Thu, 15 Sep 2016 02:21:20 +0000 (UTC) Date: Thu, 15 Sep 2016 02:21:20 +0000 (UTC) From: "Yiqun Lin (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (HDFS-10862) Typos in 7 log messages MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Thu, 15 Sep 2016 02:21:22 -0000 [ https://issues.apache.org/jira/browse/HDFS-10862?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15492098#comment-15492098 ] Yiqun Lin commented on HDFS-10862: ---------------------------------- Hi, [~MehranHassani], thanks for finding so many typos. Are you ready to work for this now? If not, I'd like to make a quick fix. Let me know you thought, thanks. > Typos in 7 log messages > ----------------------- > > Key: HDFS-10862 > URL: https://issues.apache.org/jira/browse/HDFS-10862 > Project: Hadoop HDFS > Issue Type: Bug > Reporter: Mehran Hassani > Priority: Trivial > Labels: newbie > > I am conducting research on log related bugs. I tried to make a tool to fix repetitive yet simple patterns of bugs that are related to logs. Typos in log messages are one of the reoccurring bugs. Therefore, I made a tool find typos in log statements. During my experiments, I managed to find the following typos in Hadoop HDFS: > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/BPServiceActor.java, LOG.info((success ? "S" : "Uns") +"uccessfully sent block report 0x" +Long.toHexString(reportId) + " containing " + reports.length +" storage report(s) of which we sent " + numReportsSent + "." +" The reports had " + totalBlockCount +" total blocks and used " + numRPCs +" RPC(s). This took " + brCreateCost +" msec to generate and " + brSendCost +" msecs for RPC and NN processing." +" Got back " +((nCmds == 0) ? "no commands" : ((nCmds == 1) ? "one command: " + cmds.get(0) :(nCmds + " commands: " + Joiner.on("; ").join(cmds)))) +"."), > uccessfully successfully > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/DataXceiverServer.java, LOG.info("Balancing bandwith is " + bandwidth + " bytes/s"), > bandwith should be bandwidth > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/datanode/fsdataset/impl/FsVolumeList.java, FsDatasetImpl.LOG.info("The volume " + v + " is closed while " +"addng replicas ignored."), > addng should be adding > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/CancelDelegationTokenServlet.java, LOG.info("Exception while cancelling token. Re-throwing. " e), > cancelling should be canceling > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/FSDirectory.java, NameNode.LOG.info("Caching file names occuring more than " + threshold+ " times"), > occuring should be occurring > In file /hadoop-hdfs-project/hadoop-hdfs/src/main/java/org/apache/hadoop/hdfs/server/namenode/NNStorage.java, LOG.info("NNStorage.attemptRestoreRemovedStorage: check removed(failed) "+"storarge. removedStorages size = " + removedStorageDirs.size()), > storarge should be storage > In file /hadoop-hdfs-project/hadoop-hdfs-nfs/src/main/java/org/apache/hadoop/hdfs/nfs/nfs3/RpcProgramNfs3.java, LOG.info("Partical read. Asked offset: " + offset + " count: " + count+ " and read back: " + readCount + " file size: "+ attrs.getSize()), > Partical should be Partial -- 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