zhtttylz commented on code in PR #6348:
URL: https://github.com/apache/hadoop/pull/6348#discussion_r1434688423
##########
hadoop-hdfs-project/hadoop-hdfs/src/test/java/org/apache/hadoop/hdfs/server/blockmanagement/TestDatanodeManager.java:
##########
@@ -1126,4 +1128,66 @@ public MockDfsNetworkTopology(){
super();
}
}
+
+ @Test
+ public void testComputeReconstructedTaskNum() throws IOException {
+ verifyComputeReconstructedTaskNum(100, 100, 150, 250, 100);
+ verifyComputeReconstructedTaskNum(200, 100000, 200000, 300000, 400000);
+ verifyComputeReconstructedTaskNum(1000000, 100, 150, 250, 100);
+ verifyComputeReconstructedTaskNum(14000000,200, 200, 400, 200);
Review Comment:
Thanks for the guidance! I will expedite the code revisions accordingly.
--
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]