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

TestDistributedFileSystem et al tests are broken in branch-2 due to incorrect setting of "datanode" attribute

VotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 2.7.1
    • 2.8.0, 2.7.1, 3.0.0-alpha1
    • datanode
    • None
    • Reviewed

    Description

      After HDFS-8572, some tests failed in branch-2 as below:

      Running org.apache.hadoop.hdfs.TestDistributedFileSystem
      Tests run: 17, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 44.302 sec <<< FAILURE! - in org.apache.hadoop.hdfs.TestDistributedFileSystem
      testAllWithDualPort(org.apache.hadoop.hdfs.TestDistributedFileSystem)  Time elapsed: 7.985 sec  <<< ERROR!
      java.io.IOException: Server returned HTTP response code: 500 for URL: http://127.0.0.1:43950/getFileChecksum/filechecksum/foo0?ugi=yzhangx&nnaddr=localhost:57316
              at sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLConnection.java:1625)
              at org.apache.hadoop.hdfs.web.HftpFileSystem$ChecksumParser.getFileChecksum(HftpFileSystem.java:528)
              at org.apache.hadoop.hdfs.web.HftpFileSystem$ChecksumParser.access$200(HftpFileSystem.java:504)
              at org.apache.hadoop.hdfs.web.HftpFileSystem.getFileChecksum(HftpFileSystem.java:545)
              at org.apache.hadoop.hdfs.TestDistributedFileSystem.testFileChecksum(TestDistributedFileSystem.java:592)
              at org.apache.hadoop.hdfs.TestDistributedFileSystem.testAllWithDualPort(TestDistributedFileSystem.java:683)
      

      I found that the cause is the wrong setting of "datanode" attribute in ServletContext introduced by this change.

      Attachments

        1. HDFS-8596.001.patch
          2 kB
          Yongjun Zhang

        Issue Links

        Activity

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

          People

            yzhangal Yongjun Zhang
            yzhangal Yongjun Zhang
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Slack

                Issue deployment