Uploaded image for project: 'Kafka'
  1. Kafka
  2. KAFKA-3260

Increase the granularity of commit for SourceTask

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0.1
    • 0.10.0.0
    • connect
    • None

    Description

      As of right now when commit is called the developer does not know which messages have been accepted since the last poll. I'm proposing that we extend the SourceTask class to allow records to be committed individually.

          public void commitRecord(SourceRecord record) throws InterruptedException {
              // This space intentionally left blank.
          }
      

      This method could be overridden to receive a SourceRecord during the callback of producer.send. This will give us messages that have been successfully written to Kafka. The developer then has the capability to commit messages to the source individually or in batch.

      Attachments

        Activity

          People

            ewencp Ewen Cheslack-Postava
            jcustenborder Jeremy Custenborder
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: