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

TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 2.7.0
    • Fix Version/s: 2.7.1
    • Component/s: webhdfs
    • Labels:
      None
    • Hadoop Flags:
      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-branch-2.7.patch
          0.9 kB
          Arpit Agarwal
        2. HDFS-8600.01.patch
          0.9 kB
          Arpit Agarwal

          Activity

            People

            • Assignee:
              arpitagarwal Arpit Agarwal
              Reporter:
              arpitagarwal Arpit Agarwal
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: