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

InMemoryTimeOrderedKeyValueBuffer propagates nulls when supress is configured

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.3.0
    • 2.4.0, 2.3.1
    • streams
    • None

    Description

      Maybe this is not a bug, but it looks like something is wrong. This didn't happen in kafka streams 2.2.

       

      Applying an aggregate() with suppress on kafka 2.3 sends nulls into Serializer if delayed msgs are received.

      Not sure if some data is lost or not(yet). But IMHO getting a null to serialize the "accumulator" object is suspicious that something is wrong.

       

      Attached java code to demonstrate it.

      With kafka 2.3 -> LongSerde prints NULL, not in kafka 2.2

       

       

       

       

      Attachments

        1. Test.java
          4 kB
          Ferran altimiras

        Issue Links

          Activity

            People

              vvcephei John Roesler
              faltimiras Ferran altimiras
              Votes:
              1 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: