hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Andrew Wang (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-11683) getErasureCodingPolicyByName should throw a checked exception
Date Wed, 19 Apr 2017 20:05:41 GMT

    [ https://issues.apache.org/jira/browse/HDFS-11683?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15975414#comment-15975414
] 

Andrew Wang commented on HDFS-11683:
------------------------------------

I think an InvalidRequestException might be more appropriate, though I haven't looked at all
the IOException subclasses.

> getErasureCodingPolicyByName should throw a checked exception
> -------------------------------------------------------------
>
>                 Key: HDFS-11683
>                 URL: https://issues.apache.org/jira/browse/HDFS-11683
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: erasure-coding
>    Affects Versions: 3.0.0-alpha3
>            Reporter: Andrew Wang
>              Labels: newbie
>
> getErasureCodingPolicyByName throws a HadoopIllegalArgumentException, which is a RuntimeException.
This is basically only used by CLI tools and client code, we should throw a different exception
in the NameNode.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-help@hadoop.apache.org


Mime
View raw message