tanvipenumudy commented on code in PR #6806:
URL: https://github.com/apache/ozone/pull/6806#discussion_r1636231391
##########
hadoop-hdds/server-scm/src/test/java/org/apache/hadoop/ozone/container/common/TestEndPoint.java:
##########
@@ -473,10 +473,10 @@ public void testRegisterNoContainerID() throws Exception {
@Test
public void testRegisterRpcTimeout() throws Exception {
final long rpcTimeout = 1000;
- final long tolerance = 200;
- scmServerImpl.setRpcResponseDelay(1500);
+ final long tolerance = 900;
+ scmServerImpl.setRpcResponseDelay(2500);
long start = Time.monotonicNow();
- registerTaskHelper(serverAddress, 1000, false).close();
+ registerTaskHelper(serverAddress, (int) rpcTimeout, false).close();
long end = Time.monotonicNow();
Review Comment:
> the test should check elapsed time only for endpointTask.call()
I agree, we might only need to capture the latency of the
`endpointTask.call()` block.
--
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]