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

NullPointerException in StreamPartitionAssignor (Kafka Streams)

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 0.10.0.0
    • Fix Version/s: 0.10.0.0
    • Component/s: streams
    • Labels:
      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

              • Assignee:
                Unassigned
                Reporter:
                miguno Michael Noll
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: