Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 46944 invoked from network); 16 Nov 2009 23:10:02 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 16 Nov 2009 23:10:02 -0000 Received: (qmail 20564 invoked by uid 500); 16 Nov 2009 23:10:02 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 20515 invoked by uid 500); 16 Nov 2009 23:10:02 -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 20461 invoked by uid 99); 16 Nov 2009 23:10:02 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 23:10:02 +0000 X-ASF-Spam-Status: No, hits=-10.5 required=5.0 tests=AWL,BAYES_00,RCVD_IN_DNSWL_HI X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Nov 2009 23:10:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1AB46234C1F1 for ; Mon, 16 Nov 2009 15:09:40 -0800 (PST) Message-ID: <1889018903.1258412980108.JavaMail.jira@brutus> Date: Mon, 16 Nov 2009 23:09:40 +0000 (UTC) From: "Todd Lipcon (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6377) ChecksumFileSystem.getContentSummary throws NPE on /foo In-Reply-To: <916956483.1258412859636.JavaMail.jira@brutus> 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-6377?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12778632#action_12778632 ] Todd Lipcon commented on HADOOP-6377: ------------------------------------- With FsShell modified to print stack traces: {noformat} todd@todd-laptop:~/git/hadoop-common$ ./bin/hadoop fs -du /tmp/ Found 29 items java.lang.NullPointerException at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1060) at org.apache.hadoop.fs.FileSystem.listStatus(FileSystem.java:1083) at org.apache.hadoop.fs.ChecksumFileSystem.listStatus(ChecksumFileSystem.java:473) at org.apache.hadoop.fs.FileSystem.getContentSummary(FileSystem.java:1024) at org.apache.hadoop.fs.FsShell.du(FsShell.java:731) at org.apache.hadoop.fs.FsShell.run(FsShell.java:1894) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:79) at org.apache.hadoop.fs.FsShell.main(FsShell.java:1973) {noformat} This occurs on trunk and branch-0.21, but not branch-0.20 > ChecksumFileSystem.getContentSummary throws NPE on /foo > ------------------------------------------------------- > > Key: HADOOP-6377 > URL: https://issues.apache.org/jira/browse/HADOOP-6377 > Project: Hadoop Common > Issue Type: Bug > Components: fs > Affects Versions: 0.21.0, 0.22.0 > Reporter: Todd Lipcon > > There seems to be some inconsistent usage of "null" vs empty arrays in FileSystem that causes NPEs trying to getContentSummary of a path directly within the root. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.