You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-issues@hadoop.apache.org by "Tsz Wo Nicholas Sze (JIRA)" <ji...@apache.org> on 2015/11/24 20:57:11 UTC

[jira] [Updated] (HDFS-8601) TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7

     [ https://issues.apache.org/jira/browse/HDFS-8601?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Tsz Wo Nicholas Sze updated HDFS-8601:
--------------------------------------
    Component/s:     (was: HDFS)
                 webhdfs

> TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-8601
>                 URL: https://issues.apache.org/jira/browse/HDFS-8601
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.7.0
>            Reporter: Jitendra Nath Pandey
>            Assignee: Jitendra Nath Pandey
>         Attachments: HDFS-8601-branch-2.7.1.patch
>
>
> The test testGetFileBlockLocations in TestWebHdfsFileSystemContract fails with following stack trace in branch-2.7
> {code}
> 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)
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)