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

TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.7.0
    • 2.7.1
    • webhdfs
    • None
    • Reviewed

    Description

      The test fails with a cast error due to the following commit.

      65bfde5 2015-03-03 wheat9@apa o HDFS-6565. Use jackson instead jetty json in hdfs-client. Contributed by Akira AJISAKA.

      toJsonMap inserts xferPort as an integer.

      m.put("xferPort", datanodeinfo.getXferPort());

      Then toDatanodeInfo tries to cast the Integer object to a Long.

      tmpValue = m.get("xferPort");
      int xferPort = (tmpValue == null) ? -1 : (int)(long)(Long)tmpValue;

      The test passes in trunk due to HDFS-8080. Since HDFS-8080 is too large to pull into 2.7.1 we'll fix the cast issue.

      Attachments

        1. HDFS-8600.01.patch
          0.9 kB
          Arpit Agarwal
        2. HDFS-8600-branch-2.7.patch
          0.9 kB
          Arpit Agarwal

        Activity

          People

            arp Arpit Agarwal
            arp Arpit Agarwal
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: