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 BF262D8B9 for ; Mon, 29 Oct 2012 22:41:11 +0000 (UTC) Received: (qmail 98622 invoked by uid 500); 29 Oct 2012 22:41:11 -0000 Delivered-To: apmail-hadoop-hdfs-issues-archive@hadoop.apache.org Received: (qmail 98585 invoked by uid 500); 29 Oct 2012 22:41:11 -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 98574 invoked by uid 99); 29 Oct 2012 22:41:11 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 29 Oct 2012 22:41:11 +0000 Date: Mon, 29 Oct 2012 22:41:11 +0000 (UTC) From: "Daryn Sharp (JIRA)" To: hdfs-issues@hadoop.apache.org Message-ID: <711516361.41374.1351550471557.JavaMail.jiratomcat@arcas> In-Reply-To: <1324548254.12859.1350943332487.JavaMail.jiratomcat@arcas> Subject: [jira] [Commented] (HDFS-4104) dfs -test -d prints inappropriate error on nonexistent directory 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-4104?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13486446#comment-13486446 ] Daryn Sharp commented on HDFS-4104: ----------------------------------- You can add tests to the existing {{TestDFSShell#testErrOutPut}}. It's already checking stderr for a number of commands. > dfs -test -d prints inappropriate error on nonexistent directory > ---------------------------------------------------------------- > > Key: HDFS-4104 > URL: https://issues.apache.org/jira/browse/HDFS-4104 > Project: Hadoop HDFS > Issue Type: Bug > Affects Versions: 2.0.2-alpha > Reporter: Andy Isaacson > Assignee: Andy Isaacson > Priority: Minor > Attachments: hdfs-4104.txt > > > Running {{hdfs dfs -test -d foo}} should return 0 or 1 as appropriate. It should not generate any output due to missing files. Alas, it prints an error message when {{foo}} does not exist. > {code} > $ hdfs dfs -test -d foo; echo $? > test: `foo': No such file or directory > 1 > {code} -- This message is automatically generated by JIRA. If you think it was sent incorrectly, please contact your JIRA administrators For more information on JIRA, see: http://www.atlassian.com/software/jira