Github user jinmingjian commented on a diff in the pull request:
https://github.com/apache/flink/pull/3420#discussion_r103196536
--- Diff:
flink-connectors/flink-connector-kafka-0.8/src/main/java/org/apache/flink/streaming/connectors/kafka/internals/ClosableBlockingQueue.java
---
@@ -355,13 +355,13 @@ public E getElementBlocking(long timeoutMillis)
throws InterruptedException {
throw new IllegalArgumentException("invalid timeout");
}
- final long deadline = System.currentTimeMillis() +
timeoutMillis;
+ final long deadline = System.nanoTime() + timeoutMillis *
1_000_000L;
--- End diff --
We can. But as an API, a ton of invocations in tests will come to change.
Are you ready for review? :smiley_cat: And from practices, it is uncommon to
use nano sec time unit in API except for performance/benchmark in that it is
usual too small.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---