hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Akira Ajisaka (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8741) Proper error msg to be printed when invalid operation type is given to WebHDFS operations.
Date Tue, 28 Feb 2017 04:44:45 GMT

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

Akira Ajisaka commented on HDFS-8741:
-------------------------------------

Hi [~surendrasingh], thank you for providing a patch. Mostly looks good to me.
{code}
    throw new IllegalArgumentException(str + " not a valid " + Type.GET
          + " operation.");
{code}
(minor nit) Would you add "is" between str and not?
I'm +1 if that is addressed.

> Proper error msg to be printed when invalid operation type is given to WebHDFS operations.
> ------------------------------------------------------------------------------------------
>
>                 Key: HDFS-8741
>                 URL: https://issues.apache.org/jira/browse/HDFS-8741
>             Project: Hadoop HDFS
>          Issue Type: Improvement
>          Components: webhdfs
>            Reporter: Archana T
>            Assignee: Surendra Singh Lilhore
>            Priority: Minor
>         Attachments: HDFS-8741.001.patch, HDFS-8741.002.patch
>
>
> When wrong operation type is given to WebHDFS operations, following Error message is
printed --
> For ex: CREATE is called with GET instead of PUT--
> HTTP/1.1 400 Bad Request
> ......
> {"RemoteException":{"exception":"IllegalArgumentException","javaClassName":"java.lang.IllegalArgumentException","message":"Invalid
value for webhdfs parameter \"op\": {color:red}No enum constant org.apache.hadoop.hdfs.web.resources.PutOpParam.Op.CREATE"}}{color}
> Expected--
> Valid Error message to be printed



--
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