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

Kafka Connect's JSON Converter never outputs a null value

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.9.0.1
    • 2.2.0, 2.1.1, 2.0.2
    • connect

    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

        Issue Links

          Activity

            People

              renatomefi Renato Mefi
              rhauch Randall Hauch
              Votes:
              2 Vote for this issue
              Watchers:
              12 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: