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

Normalize offsets before invoking SourceConnector::alterOffsets

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.6.0
    • 3.6.0
    • connect
    • None

    Description

      See discussion here

       

      TLDR: When users attempt to externally modify source connector offsets via the PATCH /offsets endpoint (introduced in KIP-875), type mismatches can occur between offsets passed to SourceConnector::alterOffsets and the offsets that are retrieved by connectors / tasks via an instance of OffsetStorageReader after the offsets have been modified. In order to prevent this type mismatch that could lead to subtle bugs in connectors, we could serialize + deserialize the offsets using the worker's internal JSON converter before invoking SourceConnector::alterOffsets.

      Attachments

        Issue Links

          Activity

            People

              yash.mayya Yash Mayya
              yash.mayya Yash Mayya
              Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: