You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by "Tzu-Li (Gordon) Tai (Jira)" <ji...@apache.org> on 2020/02/17 07:42:00 UTC

[jira] [Created] (FLINK-16112) KafkaDeserializationSchema#isEndOfStream is ill-defined

Tzu-Li (Gordon) Tai created FLINK-16112:
-------------------------------------------

             Summary: KafkaDeserializationSchema#isEndOfStream is ill-defined
                 Key: FLINK-16112
                 URL: https://issues.apache.org/jira/browse/FLINK-16112
             Project: Flink
          Issue Type: Improvement
          Components: Connectors / Kafka
            Reporter: Tzu-Li (Gordon) Tai


Motivated by this email thread: http://apache-flink-user-mailing-list-archive.2336050.n4.nabble.com/KafkaFetcher-closed-before-end-of-stream-is-received-for-all-partitions-td32827.html

In general, the {{isEndOfStream}} method is ill-defined. An possible improvement is to redefine the semantics and method signature, to:

{code}
boolean isEndOfPartition(T nextElement, String topic, int partition);
{code}

so that it indicates end of a Kafka partition. With this, the Kafka consumer is able to properly define end-of-subtask to be when all of its assigned partitions have signaled EOF.



--
This message was sent by Atlassian Jira
(v8.3.4#803005)