steveloughran commented on code in PR #5402:
URL: https://github.com/apache/hadoop/pull/5402#discussion_r1109612693
##########
hadoop-tools/hadoop-distcp/src/test/java/org/apache/hadoop/tools/TestDistCpSystem.java:
##########
@@ -452,7 +454,12 @@ public void testDistcpLargeFile() throws Exception {
};
LOG.info("_____ running distcp: " + args[0] + " " + args[1]);
- ToolRunner.run(conf, new DistCp(), args);
+ DistCp distcpTool = new DistCp();
+ ToolRunner.run(conf, distcpTool, args);
+ final long bytesCopied = NumberUtils.toLong(distcpTool.getConf().
+ get(CONF_LABEL_DISTCP_TOTAL_BYTES_COPIED), 0);
+ assertEquals("Bytes copied by distcp tool should match source file length",
Review Comment:
assert args are the wrong way round for the generated error messages.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]