Uploaded image for project: 'Flink'
  1. Flink
  2. FLINK-24398

KafkaSourceFetcherManager should re-use an existing SplitFetcher to commit offset if possible

    XMLWordPrintableJSON

Details

    Description

      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.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              lindong Dong Lin
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: