[
https://issues.apache.org/jira/browse/CAMEL-23124?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18063117#comment-18063117
]
Claus Ibsen commented on CAMEL-23124:
-------------------------------------
was this backported to 4.18.x ?
> camel-docling - Fix CLI mode ProcessBuilder deadlock with sequential stream
> reading
> -----------------------------------------------------------------------------------
>
> Key: CAMEL-23124
> URL: https://issues.apache.org/jira/browse/CAMEL-23124
> Project: Camel
> Issue Type: Bug
> Components: camel-docling
> Reporter: Andrea Cosentino
> Assignee: Andrea Cosentino
> Priority: Major
> Fix For: 4.18.1, 4.19.0
>
>
> In DoclingProducer.executeDoclingCommand(), stdout and stderr of the CLI
> child process are read sequentially, first all of stdout to EOF, then all of
> stderr. This creates a deadlock scenario: if the child process writes enough
> data to stderr to fill the OS pipe buffer (~64KB on Linux), the child blocks
> waiting to write more to stderr, while the Java side blocks reading stdout
> waiting for an EOF that never arrives because the child is stuck. Both
> processes hang indefinitely.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)