Description
The test fails with a cast error due to the following commit.
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.
m.put("xferPort", datanodeinfo.getXferPort());
Then toDatanodeInfo tries to cast the Integer object to a Long.
tmpValue = m.get("xferPort"); int xferPort = (tmpValue == null) ? -1 : (int)(long)(Long)tmpValue;
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.