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

Kafka Connect's JSON Converter never outputs a null value

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: 0.9.0.1
    • Fix Version/s: None
    • Component/s: KafkaConnect
    • Labels:

      Description

      Kafka Connect's JSON Converter will never output a null value when enableSchemas=true. This means that when a connector outputs a SourceRecord with a null value, the JSON Converter will always produce a message value with:

      {
        "schema": null,
        "payload": null
      }
      

      And, this means that while Kafka log compaction will always be able to remove earlier messages with the same key, log compaction will never remove all of the messages with the same key.

      The JSON Connector's fromConnectData(...) should always return null when it is supplied a null value.

        Attachments

          Activity

            People

            • Assignee:
              prasanna1433 Prasanna Subburaj
              Reporter:
              rhauch Randall Hauch
            • Votes:
              1 Vote for this issue
              Watchers:
              11 Start watching this issue

              Dates

              • Created:
                Updated: