Uploaded image for project: 'Spark'
  1. Spark
  2. SPARK-28738

Add ability to include metadata in CanCommitOffsets API

    XMLWordPrintableJSON

    Details

    • Type: New Feature
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Affects Version/s: 2.4.4
    • Fix Version/s: None
    • Component/s: DStreams
    • Labels:
      None

      Description

      It is possible to commit metadata with an offset to Kafka. Currently, the CanCommitOffsets API does not expose this functionality. See https://github.com/apache/spark/blob/017919b636fd3ce43ccf5ec57f1c1842aa2130db/external/kafka-0-10/src/main/scala/org/apache/spark/streaming/kafka010/DirectKafkaInputDStream.scala#L300

       

      We could add a commitSync function which commits an offset right away and accepts metadata.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              jrciii Joseph Cooper
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: