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

KStreamsTestDriver fails with NPE when KStream.to() sinks are used

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 0.10.2.0
    • 0.11.0.0
    • streams

    Description

      Context
      KStreamsTestDriver allows to build integration tests of KStreamsTopologies. This also includes topologies that sink data into outgoing topics by calling the KStream.to() methods.

      Problem
      When a topic is added as a sink, the KStreamsTestDriver fails with NullPointerExceptions.

      Solution
      BugFix the method KStreamTestDriver.process() method to also lookup a topic by topicName as a sink when a source has not been found.

      PullRequest

      Attachments

        Issue Links

          Activity

            People

              wimvanleuven Wim Van Leuven
              wimvanleuven Wim Van Leuven
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: