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

TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7

Log workAgile BoardRank to TopRank to BottomAttach filesAttach ScreenshotVotersWatch issueWatchersCreate sub-taskConvert to sub-taskMoveLinkCloneLabelsUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

        Activity

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

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

            Dates

              Created:
              Updated:
              Resolved:

              Issue deployment