Dong Lin created FLINK-24398: -------------------------------- Summary: KafkaSourceFetcherManager should re-use an existing SplitFetcher to commit offset if possible Key: FLINK-24398 URL: https://issues.apache.org/jira/browse/FLINK-24398 Project: Flink Issue Type: Improvement Reporter: Dong Lin
Currently KafkaSourceFetcherManager::commitOffset() will create a new SplitFetcher if the fetchers.get(0) == null. As a result, if the first fetcher has already been closed and removed, N fetchers will be created for N commitOffset() invocations. A more efficient approach is to re-use an existing fetcher to commit the offset if there is any running fetchers in this KafkaSourceFetcherManager. -- This message was sent by Atlassian Jira (v8.3.4#803005)