sodonnel commented on code in PR #3497:
URL: https://github.com/apache/ozone/pull/3497#discussion_r1040950238
##########
hadoop-hdds/container-service/src/main/java/org/apache/hadoop/ozone/container/replication/ReplicationSupervisor.java:
##########
@@ -147,6 +150,17 @@ public void run() {
final Long containerId = task.getContainerId();
try {
requestCounter.incrementAndGet();
+ if (task.getTimeoutMs() != 0) {
+ long msInQueue =
Review Comment:
Rather than calling Instance.now here, can we inject an instance of
`MonotonicClock` and use it to get the time. This will make tests easier and
avoid `sleep` calls in the tests. This is something we have used in other
places in the code before.
--
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]