Aurélien Pupier created CAMEL-28094:
---------------------------------------
Summary: camel-robotframework: after an interrupted run, every
later Robot Framework run in the JVM fails with ClosedChannelException
Key: CAMEL-28094
URL: https://issues.apache.org/jira/browse/CAMEL-28094
Project: Camel
Issue Type: Bug
Components: camel-robot
Affects Versions: 4.25.0
Reporter: Aurélien Pupier
Assignee: Aurélien Pupier
Fix For: 4.25.0
Robot Framework runs in-process on Jython and writes its progress and summary
to a console stream that is shared by the whole JVM. When a thread is
interrupted while Robot Framework starts a run (for example when a route is
stopped during a run), that console stream is closed and stays unusable: every
later run in the same JVM fails with {{IOError:
java.nio.channels.ClosedChannelException}} raised in
{{robot.output.console.highlighting}}, even after the 2 reruns of surefire.
This is the failure of {{RobotFrameworkOptionsFixTest}} in the Jenkins build of
main after CAMEL-28025 (which serializes the runs, but cannot prevent this).
Reproduced with a test that interrupts runs while they start: with the console
enabled the next run fails, with {{--console none}} it succeeds.
The component does not use the console output at all, only the return code and
the output files.
Fix: add a {{console}} endpoint option (robot {{--console}}: verbose, dotted,
quiet, none) with the default {{none}}, so Robot Framework does not write to
the console. {{console=verbose}} restores the previous output. Documented in
the 4.25 upgrade guide.
Related: CAMEL-28024, CAMEL-28025.
_Bob (AI assistant) on behalf of Aurélien Pupier_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)