Github user tzulitai commented on a diff in the pull request:

    https://github.com/apache/flink/pull/3420#discussion_r103182219
  
    --- 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 --
    
    Can we just change the argument to `timeoutNanos`?


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

Reply via email to