[GH-725] Added commandTimeoutMillis in executeRemoteCommand#726
Conversation
tomaswolf
left a comment
There was a problem hiding this comment.
This needs a test, and must be done in a way that is backwards-compatible.
9dc97b6 to
7570eb5
Compare
f564362 to
659d2ee
Compare
|
Hi @tomaswolf i have addressed all the comments provided, Can you please check this now? |
|
Hi all, I think we should stop using ints and longs to express durations ASAP. Java has Duration class, let's use it. If a duration ends up as int seconds or long milliseconds or whatever scale a low level API in Java needs, that's fine, I just feel there is still room for confusion using primitives. A Duration also offers the best precision on Java 9 and up (nanosecond). |
|
I've refactored the relevant code to use java.time.Duration instead of int/long for expressing timeouts. This should help improve clarity and avoid unit-related confusion going forward. Would appreciate it if you could take a look and let me know if anything needs adjusting. Thanks! |
Added commandTimeoutMillis in executeRemoteCommand
|
Addressed all the comments, can you please check this and provide the approvals? Thanks. |
|
Thank you! |
|
@tomaswolf @garydgregory @osi @knalli When can we expect this to get released? |
Added commandTimeoutMillis in executeRemoteCommand
Implemets #725