flink-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jinmingjian <...@git.apache.org>
Subject [GitHub] flink pull request #3420: [FLINK-4422] Convert all time interval measurement...
Date Tue, 28 Feb 2017 03:24:06 GMT
Github user jinmingjian commented on a diff in the pull request:

    --- 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 infrastructure@apache.org or file a JIRA ticket
with INFRA.

View raw message