Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-9302

WebHDFS truncate throws NullPointerException if newLength is not provided

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 3.0.0-alpha1
    • webhdfs
    • None
    • Centos6

    • Reviewed

    Description

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

      Attachments

        1. HDFS-9302_01.patch
          1 kB
          Jagadesh Kiran N
        2. HDFS-9302_00.patch
          1 kB
          Jagadesh Kiran N

        Issue Links

          Activity

            People

              jagadesh.kiran Jagadesh Kiran N
              Karthik Palaniappan Karthik Palaniappan
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: