[
https://issues.apache.org/jira/browse/CAMEL-25393?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Claus Ibsen resolved CAMEL-25393.
---------------------------------
Resolution: Fixed
Merged in https://github.com/apache/camel/pull/27916 (commit 76c2a6f0d4ab): the
commands that act on a running integration send their actions with ActionClient
and find it with ProcessFinder. A failed action exits 1 with the error of the
integration, a route or processor that does not exist exits 3, no answer exits
124 (the request is withdrawn), every such command has --timeout, and the
data-returning cmd actions have --json.
_Claude Code on behalf of davsclaus (Claus Ibsen)_
> camel-jbang - camel cmd actions report failures and timeouts
> ------------------------------------------------------------
>
> Key: CAMEL-25393
> URL: https://issues.apache.org/jira/browse/CAMEL-25393
> Project: Camel
> Issue Type: Sub-task
> Components: camel-jbang
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Priority: Major
> Fix For: 4.24.0
>
>
> Move the ~36 {{camel cmd ...}} / action commands onto {{ActionClient}} and
> {{ProcessFinder}}:
> * Fire-and-forget commands
> (route/processor/gc/reload/reset-stats/logger/trace start-stop) wait for the
> ack and fail on error.
> * No silent {{return 1}} and no silent {{exit 0}} on timeout or failed status
> ({{browse}}, {{load}}, {{receive}}, {{span}}, {{startup-recorder}},
> {{transform message}}, {{thread-dump}}, {{route-controller}}, {{source-top}},
> {{send}} local mode).
> * {{cmd expression}} / {{transform message}}: an explicit name that matches
> nothing exits 3 instead of spawning a new Camel (only without a name or with
> {{--isolated}}).
> * {{--json}} on the data-returning actions (moved from CAMEL-25392): one JSON
> document on stdout, errors as {{\{"status":"error","code":N,"message":...\}}}.
> * Fix footer examples ({{camel cmd start-route myRoute}} passes the route id
> as integration name; use {{--id}}).
> * Fix {{cmd stub --watch --find}} re-quoting patterns each refresh;
> {{--grep}} NPE in {{log}}/{{trace}}/{{receive}} when no integration ran at
> start.
> _Claude Code on behalf of davsclaus (Claus Ibsen)_
--
This message was sent by Atlassian Jira
(v8.20.10#820010)