hadoop-hdfs-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arpit Agarwal (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HDFS-8600) TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7
Date Mon, 15 Jun 2015 03:20:00 GMT

    [ https://issues.apache.org/jira/browse/HDFS-8600?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14585396#comment-14585396
] 

Arpit Agarwal commented on HDFS-8600:
-------------------------------------

Thanks [~jnp]. The precommit build won't trigger for some reason. I will commit it shortly
to branch-2.7 only.

> TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7
> ---------------------------------------------------------------------------
>
>                 Key: HDFS-8600
>                 URL: https://issues.apache.org/jira/browse/HDFS-8600
>             Project: Hadoop HDFS
>          Issue Type: Bug
>          Components: webhdfs
>    Affects Versions: 2.7.0
>            Reporter: Arpit Agarwal
>            Assignee: Arpit Agarwal
>         Attachments: HDFS-8600-branch-2.7.patch, HDFS-8600.01.patch
>
>
> The test fails with a cast error due to the following commit.
> bq. 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.
> {code}m.put("xferPort", datanodeinfo.getXferPort());{code}
> Then toDatanodeInfo tries to cast the {{Integer}} object to a {{Long}}.
> {code}tmpValue = m.get("xferPort");
> int xferPort = (tmpValue == null) ? -1 : (int)(long)(Long)tmpValue;{code}
> 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.



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

Mime
View raw message