[ https://issues.apache.org/jira/browse/KAFKA-4927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15934793#comment-15934793 ]
ASF GitHub Bot commented on KAFKA-4927: --------------------------------------- GitHub user wimvanleuven opened a pull request: https://github.com/apache/kafka/pull/2716 KAFKA-4927 : KStreamsTestDriver fails with NPE when KStream.to() sinks are used a KStream.to() sink is also a topic ... so the KStreamTestDriver to fetch it when required You can merge this pull request into a Git repository by running: $ git pull https://github.com/wimvanleuven/kafka KAFKA-4927 Alternatively you can review and apply these changes as the patch at: https://github.com/apache/kafka/pull/2716.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #2716 ---- ---- > KStreamsTestDriver fails with NPE when KStream.to() sinks are used > ------------------------------------------------------------------ > > Key: KAFKA-4927 > URL: https://issues.apache.org/jira/browse/KAFKA-4927 > Project: Kafka > Issue Type: Bug > Components: streams > Affects Versions: 0.10.2.0 > Reporter: Wim Van Leuven > Labels: test > Fix For: 0.10.2.0 > > > *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* -- This message was sent by Atlassian JIRA (v6.3.15#6346)