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

null is not passed to keyDeserialzer and valueDeserializer in Fetcher

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Patch Available
    • Major
    • Resolution: Unresolved
    • 1.1.0
    • None
    • consumer
    • None

    Description

      Hi,

      currently null values are not passed to the keyDeserializer and valueDeserializer in the Fetcher class. This prevents custom deserialization of null values.

      The Deserializer JavaDoc says

      /**
      * Deserialize a record value from a byte array into a value or object.
      * @param topic topic associated with the data
      * @param data serialized bytes; may be null; implementations are recommended to handle null by returning a value or null rather than throwing an exception.
      * @return deserialized typed data; may be null
      */
      T deserialize(String topic, byte[] data);

      so as for my understanding, null values should be passed to it.

       

      Thanks,

      Mathias

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              makubi Mathias Kub
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: