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 8A22D200B8B for ; Tue, 30 Aug 2016 07:54:22 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 888E0160AB8; Tue, 30 Aug 2016 05:54: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 CF3FA160AC8 for ; Tue, 30 Aug 2016 07:54:21 +0200 (CEST) Received: (qmail 76560 invoked by uid 500); 30 Aug 2016 05:54:20 -0000 Mailing-List: contact common-issues-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Delivered-To: mailing list common-issues@hadoop.apache.org Received: (qmail 76539 invoked by uid 99); 30 Aug 2016 05:54:20 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 05:54:20 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 97EDD2C0156 for ; Tue, 30 Aug 2016 05:54:20 +0000 (UTC) Date: Tue, 30 Aug 2016 05:54:20 +0000 (UTC) From: "Andrew Wang (JIRA)" To: common-issues@hadoop.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (HADOOP-12726) Unsupported FS operations should throw UnsupportedOperationException MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Tue, 30 Aug 2016 05:54:22 -0000 [ https://issues.apache.org/jira/browse/HADOOP-12726?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Andrew Wang updated HADOOP-12726: --------------------------------- Release Note: Unsupported FileSystem operations now throw an UnsupportedOperationException rather than an IOException. > Unsupported FS operations should throw UnsupportedOperationException > -------------------------------------------------------------------- > > Key: HADOOP-12726 > URL: https://issues.apache.org/jira/browse/HADOOP-12726 > Project: Hadoop Common > Issue Type: Improvement > Components: fs > Affects Versions: 2.7.1 > Reporter: Daniel Templeton > Assignee: Daniel Templeton > Fix For: 3.0.0-alpha1 > > Attachments: HADOOP-12726.001.patch, HADOOP-12726.002.patch, HADOOP-12726.003.patch > > > In the {{FileSystem}} implementation classes, unsupported operations throw {{new IOException("Not supported")}}, which makes it needlessly difficult to distinguish an actual error from an unsupported operation. They should instead throw {{new UnsupportedOperationException()}}. > It's possible that this anti-idiom is used elsewhere in the code base. This JIRA should include finding and cleaning up those instances as well. -- This message was sent by Atlassian JIRA (v6.3.4#6332) --------------------------------------------------------------------- To unsubscribe, e-mail: common-issues-unsubscribe@hadoop.apache.org For additional commands, e-mail: common-issues-help@hadoop.apache.org