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

TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Duplicate
    • 2.7.0
    • None
    • webhdfs
    • None

    Description

      The test testGetFileBlockLocations in TestWebHdfsFileSystemContract fails with following stack trace in branch-2.7

      java.io.IOException: Response decoding failure: java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.Long
      	at org.apache.hadoop.hdfs.web.JsonUtil.toDatanodeInfo(JsonUtil.java:340)
      	at org.apache.hadoop.hdfs.web.JsonUtil.toDatanodeInfoArray(JsonUtil.java:415)
      	at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlock(JsonUtil.java:445)
      	at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlockList(JsonUtil.java:484)
      	at org.apache.hadoop.hdfs.web.JsonUtil.toLocatedBlocks(JsonUtil.java:517)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$12.decodeResponse(WebHdfsFileSystem.java:1386)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$12.decodeResponse(WebHdfsFileSystem.java:1383)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$FsPathResponseRunner.getResponse(WebHdfsFileSystem.java:737)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.runWithRetry(WebHdfsFileSystem.java:615)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.access$100(WebHdfsFileSystem.java:463)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner$1.run(WebHdfsFileSystem.java:492)
      	at java.security.AccessController.doPrivileged(Native Method)
      	at javax.security.auth.Subject.doAs(Subject.java:415)
      	at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1657)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem$AbstractRunner.run(WebHdfsFileSystem.java:488)
      	at org.apache.hadoop.hdfs.web.WebHdfsFileSystem.getFileBlockLocations(WebHdfsFileSystem.java:1382)
      	at org.apache.hadoop.hdfs.web.TestWebHdfsFileSystemContract.testGetFileBlockLocations(TestWebHdfsFileSystemContract.java:136)
      

      Attachments

        1. HDFS-8601-branch-2.7.1.patch
          0.8 kB
          Jitendra Nath Pandey

        Activity

          People

            jnp Jitendra Nath Pandey
            jnp Jitendra Nath Pandey
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: