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

Kafka Streams drop NULL values after reset

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 3.6.1
    • None
    • streams
    • None

    Description

      Kafka Streams (KTable) drops null values after full reset.

      See https://github.com/foal/Null-Issue/blob/main/src/main/java/NullProblemExample.java for sample topology

      Step to reproduce (req NULL-IN, NULL-IN-AUX, NULL-OUT topics)

      1. Start example - 1st round
      2. Send to NULL-IN "A1:a" -> NULL-OUT "A1:anull"
      3. Send to NULL-IN-AUX "A1:b" -> NULL-OUT "A1:anull, A1:ab"
      4. Stop application 
      5. Run kafka-streams-application-reset 
        call bin/windows/kafka-streams-application-reset --application-id nullproblem-example^
         --input-topics "NULL-IN,NULL-IN-AUX"^
         --bootstrap-server "localhost:9092"
        
      1. Send to NULL-IN-AUX "A1:" -> NULL-OUT "A1:anull, A1:ab" - it is Ok (no app running yet)
      2. Start example - 2nd round
      3. After initialization -> NULL-OUT still contains 2 messages "A1:anull, A1:ab"
      4. Expected output 3 messages "A1:anull, A1:ab, A1:"

      The issue is NOT reproduced if application just restarted (skip step 5). 

      The issue is NOT reproduced if internal cache is disabled.

      Attachments

        Activity

          People

            Unassigned Unassigned
            foal Stanislav Spiridonov
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated: