[ https://issues.apache.org/jira/browse/FLINK-7174?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16092773#comment-16092773 ]
ASF GitHub Bot commented on FLINK-7174: --------------------------------------- Github user tzulitai commented on a diff in the pull request: https://github.com/apache/flink/pull/4321#discussion_r128178914 --- Diff: flink-connectors/flink-connector-kafka-0.9/src/main/java/org/apache/flink/streaming/connectors/kafka/internal/KafkaConsumerThread.java --- @@ -210,14 +214,28 @@ public void run() { } try { - newPartitions = unassignedPartitionsQueue.pollBatch(); + if (hasAssignedPartitions) { + newPartitions = unassignedPartitionsQueue.pollBatch(); + } + else { + // if no assigned partitions block until we get at least one + // instead of hot spinning this loop. We relay on a fact that --- End diff -- nit: typo? relay -> rely > Bump dependency of Kafka 0.10.x to the latest one > ------------------------------------------------- > > Key: FLINK-7174 > URL: https://issues.apache.org/jira/browse/FLINK-7174 > Project: Flink > Issue Type: Improvement > Components: Kafka Connector > Reporter: Piotr Nowojski > Assignee: Piotr Nowojski > > We are using pretty old Kafka version for 0.10. Besides any bug fixes and > improvements that were made between 0.10.0.1 and 0.10.2.1, it 0.10.2.1 > version is more similar to 0.11.0. -- This message was sent by Atlassian JIRA (v6.4.14#64029)