dlmarion commented on code in PR #6041:
URL: https://github.com/apache/accumulo/pull/6041#discussion_r2673322581


##########
test/src/main/java/org/apache/accumulo/test/util/Wait.java:
##########
@@ -103,14 +106,14 @@ public static void waitFor(final Condition condition, 
final long duration, final
       final String failMessage) {
 
     final int timeoutFactor = getTimeoutFactor(e -> 1); // default to factor 
of 1
-    final long scaledDurationNanos = MILLISECONDS.toNanos(duration) * 
timeoutFactor;
+    final Duration scaledDuration = 
Duration.ofMillis(duration).multipliedBy(timeoutFactor);

Review Comment:
   Yeah, sounds like a good idea to catch the exception from multiplyExact and 
set to Long.MAX_VALUE.



-- 
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]

Reply via email to