You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Andrew Wang (JIRA)" <ji...@apache.org> on 2017/04/19 20:20:41 UTC

[jira] [Resolved] (HDFS-11683) getErasureCodingPolicyByName should throw a checked exception

     [ https://issues.apache.org/jira/browse/HDFS-11683?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Andrew Wang resolved HDFS-11683.
--------------------------------
    Resolution: Not A Problem

Looking more, it seems like this is actually pretty common in our API. NVM. 

> 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-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org