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 "Arpit Agarwal (JIRA)" <ji...@apache.org> on 2015/06/15 01:50:00 UTC

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

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

Arpit Agarwal updated HDFS-8600:
--------------------------------
    Attachment: HDFS-8600.01.patch

Trivial patch to fix the cast issue.

> 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.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)