[ 
https://issues.apache.org/jira/browse/KAFKA-21682?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Lucas Brutschy reassigned KAFKA-21682:
--------------------------------------

    Assignee: Lucas Brutschy

> StackOverflowError in StreamsBuilder.build() for deep processor chains
> ----------------------------------------------------------------------
>
>                 Key: KAFKA-21682
>                 URL: https://issues.apache.org/jira/browse/KAFKA-21682
>             Project: Kafka
>          Issue Type: Bug
>          Components: streams
>    Affects Versions: 3.7.0, 4.4.0
>            Reporter: Lucas Brutschy
>            Assignee: Lucas Brutschy
>            Priority: Major
>
> {{StreamsBuilder.build()}} always runs 
> {{NodesWithRelaxedNullKeyJoinDownstream}} (from 
> {{InternalStreamsBuilder.optimizeTopology}} -> {{rewriteRepartitionNodes}}), 
> even with topology optimization disabled. Its {{traverseGraph}} method 
> recurses once per graph node, so the recursion depth equals the length of the 
> longest processor chain. A linear chain of about 8,000 processors (for 
> example repeated {{mapValues}}) throws {{StackOverflowError}} on a default 1 
> MB thread stack. Replacing the recursion with an iterative traversal fixes it 
> without changing which repartition nodes are rewritten.



--
This message was sent by Atlassian Jira
(v10.3.26#10030026)

Reply via email to