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

NullPointerException in StreamPartitionAssignor (Kafka Streams)

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.0.0
    • 0.10.0.0
    • streams
    • None

    Description

      KAFKA-3311 changed streams/src/main/java/org/apache/kafka/streams/processor/internals/StreamPartitionAssignor.java, which triggers NPEs consistently at this line:

                  for (Map.Entry<String, Set<TaskId>> entry : internalSourceTopicToTaskIds.entrySet()) {
      

      The impact is significant unfortunately because any end-to-end Streams job that I have been running keeps failing currently because of this bug.

      How to fix

      The naive fix – a simple null check – seems to resolve the problem. PR incoming.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              miguno Michael G. Noll
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: