You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Claus Ibsen (Jira)" <ji...@apache.org> on 2026/03/05 06:37:00 UTC
[jira] [Updated] (CAMEL-23124) camel-docling - Fix CLI mode ProcessBuilder deadlock with sequential stream reading
[ https://issues.apache.org/jira/browse/CAMEL-23124?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-23124:
--------------------------------
Component/s: camel-docling
> 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)