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.

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

        Activity

        Hide
        arpitagarwal Arpit Agarwal added a comment -

        Committed to branch-2.7. Thanks again for the review.

        Show
        arpitagarwal Arpit Agarwal added a comment - Committed to branch-2.7. Thanks again for the review.
        Hide
        arpitagarwal Arpit Agarwal added a comment -

        Thanks Jitendra Nath Pandey. The precommit build won't trigger for some reason. I will commit it shortly to branch-2.7 only.

        Show
        arpitagarwal Arpit Agarwal added a comment - Thanks Jitendra Nath Pandey . The precommit build won't trigger for some reason. I will commit it shortly to branch-2.7 only.
        Hide
        jnp Jitendra Nath Pandey added a comment -

        +1 for the patch.

        Show
        jnp Jitendra Nath Pandey added a comment - +1 for the patch.
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        -1 patch 0m 0s The patch command could not apply the patch during dryrun.



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12739533/HDFS-8600-branch-2.7.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision branch-2 / d07f380
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/11350/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment -1 patch 0m 0s The patch command could not apply the patch during dryrun. Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12739533/HDFS-8600-branch-2.7.patch Optional Tests javadoc javac unit findbugs checkstyle git revision branch-2 / d07f380 Console output https://builds.apache.org/job/PreCommit-HDFS-Build/11350/console This message was automatically generated.
        Hide
        hadoopqa Hadoop QA added a comment -



        -1 overall



        Vote Subsystem Runtime Comment
        -1 patch 0m 0s The patch command could not apply the patch during dryrun.



        Subsystem Report/Notes
        Patch URL http://issues.apache.org/jira/secure/attachment/12739531/HDFS-8600.01.patch
        Optional Tests javadoc javac unit findbugs checkstyle
        git revision trunk / 4c5da9b
        Console output https://builds.apache.org/job/PreCommit-HDFS-Build/11349/console

        This message was automatically generated.

        Show
        hadoopqa Hadoop QA added a comment - -1 overall Vote Subsystem Runtime Comment -1 patch 0m 0s The patch command could not apply the patch during dryrun. Subsystem Report/Notes Patch URL http://issues.apache.org/jira/secure/attachment/12739531/HDFS-8600.01.patch Optional Tests javadoc javac unit findbugs checkstyle git revision trunk / 4c5da9b Console output https://builds.apache.org/job/PreCommit-HDFS-Build/11349/console This message was automatically generated.
        Hide
        arpitagarwal Arpit Agarwal added a comment -

        Trivial patch to fix the cast issue.

        Show
        arpitagarwal Arpit Agarwal added a comment - Trivial patch to fix the cast issue.

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development