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 C6DE792FE for ; Wed, 18 Jul 2012 00:53:36 +0000 (UTC) Received: (qmail 44756 invoked by uid 500); 18 Jul 2012 00:53:36 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 44715 invoked by uid 500); 18 Jul 2012 00:53:36 -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 44528 invoked by uid 99); 18 Jul 2012 00:53:35 -0000 Received: from issues-vm.apache.org (HELO issues-vm) (140.211.11.160) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 18 Jul 2012 00:53:35 +0000 Received: from isssues-vm.apache.org (localhost [127.0.0.1]) by issues-vm (Postfix) with ESMTP id 7EDB3141BF8 for ; Wed, 18 Jul 2012 00:53:35 +0000 (UTC) Date: Wed, 18 Jul 2012 00:53:35 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <474834014.67229.1342572815521.JavaMail.jiratomcat@issues-vm> In-Reply-To: <412316351.29447.1341941195392.JavaMail.jiratomcat@issues-vm> Subject: [jira] [Commented] (HDFS-3626) Creating file with invalid path can corrupt edit log 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-3626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13416780#comment-13416780 ] Todd Lipcon commented on HDFS-3626: ----------------------------------- Daryn/Suresh: are you guys OK with this current patch given the justification above? > Creating file with invalid path can corrupt edit log > ---------------------------------------------------- > > Key: HDFS-3626 > URL: https://issues.apache.org/jira/browse/HDFS-3626 > Project: Hadoop HDFS > Issue Type: Bug > Components: name-node > Affects Versions: 2.0.0-alpha > Reporter: Todd Lipcon > Assignee: Todd Lipcon > Priority: Blocker > Attachments: hdfs-3626.txt, hdfs-3626.txt > > > Joris Bontje reports the following: > The following command results in a corrupt NN editlog (note the double slash and reading from stdin): > $ cat /usr/share/dict/words | hadoop fs -put - hdfs://localhost:8020//path/file > After this, restarting the namenode will result into the following fatal exception: > {code} > 2012-07-10 06:29:19,910 INFO org.apache.hadoop.hdfs.server.namenode.FSImage: Reading /var/lib/hadoop-hdfs/cache/hdfs/dfs/name/current/edits_0000000000000000173-0000000000000000188 expecting start txid #173 > 2012-07-10 06:29:19,912 ERROR org.apache.hadoop.hdfs.server.namenode.FSEditLogLoader: Encountered exception on operation MkdirOp [length=0, path=/, timestamp=1341915658216, permissions=cloudera:supergroup:rwxr-xr-x, opCode=OP_MKDIR, txid=182] > java.lang.ArrayIndexOutOfBoundsException: -1 > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa For more information on JIRA, see: http://www.atlassian.com/software/jira