Return-Path: Delivered-To: apmail-hadoop-common-issues-archive@minotaur.apache.org Received: (qmail 58353 invoked from network); 23 Feb 2010 20:19:52 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 23 Feb 2010 20:19:52 -0000 Received: (qmail 47679 invoked by uid 500); 23 Feb 2010 20:19:52 -0000 Delivered-To: apmail-hadoop-common-issues-archive@hadoop.apache.org Received: (qmail 47623 invoked by uid 500); 23 Feb 2010 20:19:52 -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 47613 invoked by uid 99); 23 Feb 2010 20:19:52 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Feb 2010 20:19:52 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED 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; Tue, 23 Feb 2010 20:19:50 +0000 Received: from brutus.apache.org (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id A37EF234C4B4 for ; Tue, 23 Feb 2010 12:19:29 -0800 (PST) Message-ID: <425727468.470981266956369668.JavaMail.jira@brutus.apache.org> Date: Tue, 23 Feb 2010 20:19:29 +0000 (UTC) From: "Hadoop QA (JIRA)" To: common-issues@hadoop.apache.org Subject: [jira] Commented: (HADOOP-6537) Proposal for exceptions thrown by FileContext and Abstract File System MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HADOOP-6537?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12837426#action_12837426 ] Hadoop QA commented on HADOOP-6537: ----------------------------------- -1 overall. Here are the results of testing the latest attachment http://issues.apache.org/jira/secure/attachment/12436751/hdfs-717.4.patch against trunk revision 915168. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. Please justify why no new tests are needed for this patch. Also please list what manual steps were performed to verify this patch. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/370/testReport/ Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/370/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/370/artifact/trunk/build/test/checkstyle-errors.html Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch-h4.grid.sp2.yahoo.net/370/console This message is automatically generated. > Proposal for exceptions thrown by FileContext and Abstract File System > ---------------------------------------------------------------------- > > Key: HADOOP-6537 > URL: https://issues.apache.org/jira/browse/HADOOP-6537 > Project: Hadoop Common > Issue Type: Improvement > Reporter: Jitendra Nath Pandey > Assignee: Suresh Srinivas > Fix For: 0.22.0 > > Attachments: hdfs-717.1.patch, hdfs-717.2.patch, hdfs-717.3.patch, hdfs-717.4.patch, hdfs-717.patch, hdfs-717.patch > > > Currently the APIs in FileContext throw only IOException. Going forward these APIs will throw more specific exceptions. > This jira proposes following hierarchy of exceptions to be thrown by FileContext and AFS (Abstract File System) classes. > InterruptedException (java.lang.InterruptedException) > IOException > /* Following exceptions extend IOException */ > FileNotFoundException > FileAlreadyExistsException > DirectoryNotEmptyException > NotDirectoryException > AccessDeniedException > IsDirectoryException > InvalidPathNameException > > FileSystemException > /* Following exceptions extend FileSystemException */ > FileSystemNotReadyException > ReadOnlyFileSystemException > QuotaExceededException > OutOfSpaceException > RemoteException (java.rmi.RemoteException) > Most of the IOExceptions above are caused by invalid user input, while FileSystemException is thrown when FS is in such a state that the requested operation cannot proceed. > Please note that the proposed RemoteException is from standard java rmi package, which also extends IOException. > > HDFS throws many exceptions which are not in the above list. The DFSClient will unwrap the exceptions thrown by HDFS, and any exception not in the above list will be thrown as IOException or FileSystemException. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.