Claus Ibsen created CAMEL-26677:
-----------------------------------
Summary: camel-chaos - expectations on the error handler: handled,
redeliveries and failed counts of a route
Key: CAMEL-26677
URL: https://issues.apache.org/jira/browse/CAMEL-26677
Project: Camel
Issue Type: Improvement
Components: camel-jbang
Reporter: Claus Ibsen
Assignee: Claus Ibsen
Fix For: 4.24.0
Today {{expect=<route>:<count>}} counts completed exchanges, and a handled
exchange (dead letter channel) counts as completed, so an expectation is met
while every message went to the DLQ. "N messages to the DLQ" only works when a
route consumes the DLQ, and "no message reaches the DLQ" cannot be said.
* New forms on the counts the report already has: {{expect=orders:handled=0}},
{{expect=orders:handled>=5}}, {{expect=orders:redeliveries<=30}},
{{expect=orders:failed=0}}. {{expect=orders:20}} keeps its meaning.
* The wording of an unmet expectation fits its kind (today an unmet
{{expect=dlq:5}} says "5 lost" while the 5 messages were recovered by
redelivery).
Part of CAMEL-26667 (findings of the hands-on round of camel-chaos stage 1),
which has the scenarios.
_Claude Code on behalf of Claus Ibsen_
--
This message was sent by Atlassian Jira
(v10.3.26#10030026)