[ 
https://issues.apache.org/jira/browse/KAFKA-4461?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15852496#comment-15852496
 ] 

ASF GitHub Bot commented on KAFKA-4461:
---------------------------------------

GitHub user amccague opened a pull request:

    https://github.com/apache/kafka/pull/2499

    KAFKA-4461 Added support to ProcessorTopologyTestDriver for internal topics.

    This resolves an issue in driving tests using the 
ProcessorTopologyTestDriver when `groupBy()` is invoked downstream of a 
processor that flags repartitioning.
    
    Ticket: https://issues.apache.org/jira/browse/KAFKA-4461
    Discussion: http://search-hadoop.com/m/Kafka/uyzND1wbKeY1Q8nH1
    
    @dguy @guozhangwang 
    
    The contribution is my original work and I license the work to the project 
under the project's open source license.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/amccague/kafka 
KAFKA-4461_ProcessorTopologyTestDriver_map_groupbykey

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/kafka/pull/2499.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 #2499
    
----
commit 938b8bb8b8981ea25bacc7389565e15604c4dcba
Author: Adrian McCague <amcca...@gmail.com>
Date:   2017-02-04T02:09:35Z

    KAFKA-4461 Added support to ProcessorTopologyTestDriver for internal topics.
    Ticket: https://issues.apache.org/jira/browse/KAFKA-4461
    Discussion: http://search-hadoop.com/m/Kafka/uyzND1wbKeY1Q8nH1

----


> When using ProcessorTopologyTestDriver, the combination of map and 
> .groupByKey does not produce any result
> ----------------------------------------------------------------------------------------------------------
>
>                 Key: KAFKA-4461
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4461
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 0.10.1.0
>            Reporter: Hamidreza Afzali
>              Labels: newbie, unit-test
>
> *Problem*
> When using ProcessorTopologyTestDriver in the latest Kafka 0.10.1, the 
> combination of map and .groupByKey does not produce any result. However, it 
> works fine when using KStreamTestDriver.
> The topology looks like this:
> {code}
> builder.stream(Serdes.String, Serdes.Integer, inputTopic)
>  .map((k, v) => new KeyValue(fn(k), v))
>  .groupByKey(Serdes.String, Serdes.Integer)
>  .count(stateStore)
> {code}
> *Full examples*
> Examples for ProcessorTopologyTestDriver and KStreamTestDriver:
> https://gist.github.com/hrafzali/c2f50e7b957030dab13693eec1e49c13
> *Additional info*
> kafka-users mailing list:
> http://mail-archives.apache.org/mod_mbox/kafka-users/201611.mbox/%3CCAHwHRrVq1APVkNhP3HVqxujxRJEP9FwHV2NRcvPPsHX7Wujzng%40mail.gmail.com%3E



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Reply via email to