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

    https://github.com/apache/flink/pull/5669#discussion_r177742687
  
    --- Diff: 
flink-connectors/flink-connector-kafka-base/src/test/java/org/apache/flink/streaming/connectors/kafka/KafkaConsumerTestBase.java
 ---
    @@ -244,7 +255,7 @@ public void run() {
                while (System.nanoTime() < deadline);
     
                // cancel the job & wait for the job to finish
    -           
JobManagerCommunicationUtils.cancelCurrentJob(flink.getLeaderGateway(timeout));
    +           client.cancel(getRunningJobs(client).get(0));
    --- End diff --
    
    `Iterables.getOnlyElement(getRunningJobs(client))`?


---

Reply via email to