I waited a fair bit, but following your suggestion I set CACHE_MAX_BYTES_BUFFERING_CONFIG to 0.
I still don't see data in the output topic.
Interestingly, I don't think it even creates the internal topics as a streams reset gives me ;
Resetting offsets to zero for input topics [IN_TOPIC] and all internal topics.
[2018-02-26 05:51:33,520] WARN Error while fetching metadata with correlation id 2 : {streams-wordcount-Counts-repartition=UNKNOWN_TOPIC_OR_PARTITION} (org.apache.kafka.clients.NetworkClient)
[2018-02-26 05:51:33,628] WARN Error while fetching metadata with correlation id 7 : {streams-wordcount-Counts-repartition=UNKNOWN_TOPIC_OR_PARTITION} (org.apache.kafka.clients.NetworkClient)
[2018-02-26 05:51:33,629] WARN The following subscribed topics are not assigned to any members in the group streams-wordcount : [streams-wordcount-Counts-repartition] (org.apache.kafka.clients.consumer.internals.ConsumerCoordinator)
[2018-02-26 05:51:33,730] WARN Error while fetching metadata with correlation id 10 : {streams-wordcount-Counts-repartition=UNKNOWN_TOPIC_OR_PARTITION} (org.apache.kafka.clients.NetworkClient)
Done.
Deleting all internal/auto-created topics for application streams-wordcount
Topic streams-wordcount-Counts-repartition is marked for deletion.
Note: This will have no impact if delete.topic.enable is not set to true.
Done.
I've debugged further and noticed the flatMapValues operator is never fed records from the KStream.
KStream<String, String> source = builder.stream("IN_TOPIC");
KTable<String, Long> wordCounts = source
.flatMapValues(value -> Arrays.asList(value.toLowerCase().split("\\W+")))
.groupBy((key, value) -> value)
.count("Counts");
Debugger breakpoint never hits the lambda value -> Arrays.asList()
But it does if I remove groupBy and count from the above, or if I do something like ;
KStream<String, String> source = builder.stream("IN_TOPIC");
source.mapValues(v -> v.replace("a","z"));
Tried using 0.11.0.2 but got the same behaviour.
I don't get what I'm missing.
Jonathan Skrzypek
To unsubscribe from this group and stop receiving emails from it, send an email to
confluent-platf...@googlegroups.com.
To post to this group, send email to
confluent...@googlegroups.com.
To view this discussion on the web visit
https://groups.google.com/d/msgid/confluent-platform/4499139c-2104-e26f-3aa4-e867a617563d%40confluent.io.