[jira] [Updated] (HDFS-9302) WebHDFS throws NullPointerException if newLength is not provided
[ https://issues.apache.org/jira/browse/HDFS-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yi Liu updated HDFS-9302: - Target Version/s: 2.8.0 (was: 2.8.0, 2.7.2) > WebHDFS throws NullPointerException if newLength is not provided > > > Key: HDFS-9302 > URL: https://issues.apache.org/jira/browse/HDFS-9302 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS >Affects Versions: 2.7.1 > Environment: Centos6 >Reporter: Karthik Palaniappan >Assignee: Jagadesh Kiran N >Priority: Minor > Attachments: HDFS-9302_00.patch, HDFS-9302_01.patch > > > $ curl -X POST "http://namenode:50070/webhdfs/v1/foo?op=truncate; > {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}} > We should change newLength to be a required parameter in the webhdfs > documentation > (https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#New_Length), > and throw an IllegalArgumentException if isn't provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-9302) WebHDFS throws NullPointerException if newLength is not provided
[ https://issues.apache.org/jira/browse/HDFS-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Yi Liu updated HDFS-9302: - Resolution: Fixed Hadoop Flags: Reviewed Fix Version/s: 2.8.0 Status: Resolved (was: Patch Available) Committed to trunk and branch-2. > WebHDFS throws NullPointerException if newLength is not provided > > > Key: HDFS-9302 > URL: https://issues.apache.org/jira/browse/HDFS-9302 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS >Affects Versions: 2.7.1 > Environment: Centos6 >Reporter: Karthik Palaniappan >Assignee: Jagadesh Kiran N >Priority: Minor > Fix For: 2.8.0 > > Attachments: HDFS-9302_00.patch, HDFS-9302_01.patch > > > $ curl -X POST "http://namenode:50070/webhdfs/v1/foo?op=truncate; > {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}} > We should change newLength to be a required parameter in the webhdfs > documentation > (https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#New_Length), > and throw an IllegalArgumentException if isn't provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-9302) WebHDFS throws NullPointerException if newLength is not provided
[ https://issues.apache.org/jira/browse/HDFS-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jagadesh Kiran N updated HDFS-9302: --- Attachment: HDFS-9302_00.patch Attached the patch [~hitliuyi] ,please review > WebHDFS throws NullPointerException if newLength is not provided > > > Key: HDFS-9302 > URL: https://issues.apache.org/jira/browse/HDFS-9302 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS >Affects Versions: 2.7.1 > Environment: Centos6 >Reporter: Karthik Palaniappan >Assignee: Jagadesh Kiran N >Priority: Minor > Attachments: HDFS-9302_00.patch > > > $ curl -X POST "http://namenode:50070/webhdfs/v1/foo?op=truncate; > {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}} > We should change newLength to be a required parameter in the webhdfs > documentation > (https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#New_Length), > and throw an IllegalArgumentException if isn't provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-9302) WebHDFS throws NullPointerException if newLength is not provided
[ https://issues.apache.org/jira/browse/HDFS-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jagadesh Kiran N updated HDFS-9302: --- Status: Patch Available (was: Open) > WebHDFS throws NullPointerException if newLength is not provided > > > Key: HDFS-9302 > URL: https://issues.apache.org/jira/browse/HDFS-9302 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS >Affects Versions: 2.7.1 > Environment: Centos6 >Reporter: Karthik Palaniappan >Assignee: Jagadesh Kiran N >Priority: Minor > Attachments: HDFS-9302_00.patch > > > $ curl -X POST "http://namenode:50070/webhdfs/v1/foo?op=truncate; > {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}} > We should change newLength to be a required parameter in the webhdfs > documentation > (https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#New_Length), > and throw an IllegalArgumentException if isn't provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)
[jira] [Updated] (HDFS-9302) WebHDFS throws NullPointerException if newLength is not provided
[ https://issues.apache.org/jira/browse/HDFS-9302?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Jagadesh Kiran N updated HDFS-9302: --- Attachment: HDFS-9302_01.patch Thanks [~hitliuyi] for your review, i have updated the patch as per your comments please review > WebHDFS throws NullPointerException if newLength is not provided > > > Key: HDFS-9302 > URL: https://issues.apache.org/jira/browse/HDFS-9302 > Project: Hadoop HDFS > Issue Type: Bug > Components: HDFS >Affects Versions: 2.7.1 > Environment: Centos6 >Reporter: Karthik Palaniappan >Assignee: Jagadesh Kiran N >Priority: Minor > Attachments: HDFS-9302_00.patch, HDFS-9302_01.patch > > > $ curl -X POST "http://namenode:50070/webhdfs/v1/foo?op=truncate; > {"RemoteException":{"exception":"NullPointerException","javaClassName":"java.lang.NullPointerException","message":null}} > We should change newLength to be a required parameter in the webhdfs > documentation > (https://hadoop.apache.org/docs/r2.7.1/hadoop-project-dist/hadoop-hdfs/WebHDFS.html#New_Length), > and throw an IllegalArgumentException if isn't provided. -- This message was sent by Atlassian JIRA (v6.3.4#6332)