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] [Created] (HDFS-8600) TestWebHdfsFileSystemContract.testGetFileBlockLocations fails in branch-2.7
Date Sun, 14 Jun 2015 23:33:00 GMT
Arpit Agarwal created HDFS-8600:
-----------------------------------

             Summary: 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


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