[
https://issues.apache.org/jira/browse/CAMEL-28025?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Aurélien Pupier resolved CAMEL-28025.
-------------------------------------
Resolution: Fixed
> camel-robotframework: concurrent Robot Framework runs in the same JVM break
> each other (ClosedChannelException)
> ---------------------------------------------------------------------------------------------------------------
>
> Key: CAMEL-28025
> URL: https://issues.apache.org/jira/browse/CAMEL-28025
> Project: Camel
> Issue Type: Bug
> Components: camel-robot
> Affects Versions: 4.25.0
> Reporter: Aurélien Pupier
> Assignee: Aurélien Pupier
> Priority: Major
> Fix For: 4.25.0
>
>
> Robot Framework runs in-process on Jython. Each run redirects the JVM wide
> System.out and System.err (JavaCapturer in robot.running.outputcapture), so
> two runs that overlap in the same JVM close or replace each other's streams.
> When several routes, consumers or exchanges call the robotframework component
> at the same time, a run can fail with {{IOError:
> java.nio.channels.ClosedChannelException}}, {{ValueError: I/O operation on
> closed file}} or {{IndexError: pop from empty list}}, and the output files
> are corrupt (e.g. {{ParseError: Premature end of file}} reading output.xml).
> This was found as the flaky test CAMEL-28024 (RobotFrameworkOptionsFixTest)
> when surefire runs test classes concurrently, but it can happen in production
> too.
> Fix: serialize the Robot Framework runs in the component with a JVM wide
> lock, and document it in the component page.
> _Bob (AI assistant) on behalf of Aurélien Pupier_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)