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/01/14 12:15:00 UTC
[jira] [Updated] (CAMEL-22855) Inconsistent Route Statistics for Consumer-Side Failures
[ https://issues.apache.org/jira/browse/CAMEL-22855?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen updated CAMEL-22855:
--------------------------------
Priority: Minor (was: Major)
> Inconsistent Route Statistics for Consumer-Side Failures
> --------------------------------------------------------
>
> Key: CAMEL-22855
> URL: https://issues.apache.org/jira/browse/CAMEL-22855
> Project: Camel
> Issue Type: Bug
> Components: camel-management
> Affects Versions: 4.10.8
> Reporter: Bruno Gonçalves
> Priority: Minor
> Attachments: error-handler-reproducer.zip
>
>
> When a consumer (e.g., {{{}imaps{}}}) fails to connect and {{bridgeErrorHandler=true}} is used in conjunction with a {{handled(true)}} error policy, the {{ManagedRouteMBean}} statistics are misleading. The failure is not counted in the {{ExchangesFailed}} metric, and the {{ExchangesCompleted}} metric increments as if the business logic succeeded.
> Reproducer on attach.
>
> {{--- CAMEL STATISTICS REPORT ---}}
> {{Route ID: imapRoute}}
> {{ - Total Exchanges: 1}}
> {{ - Completed: 1}}
> {{ - Failed (Unhandled): 0}}
> {{ - Failures Handled: 1 (from JMX)}}
> {{ - Ext. Redeliveries: 0 (from JMX)}}
> {{ => TOTAL LOGICAL FAILURES: 1}}
> {{--------------------------------}}
> {{Route ID: errorRoute2}}
> {{ - Total Exchanges: 1}}
> {{ - Completed: 1}}
> {{ - Failed (Unhandled): 0}}
> {{ - Failures Handled: 0 (from JMX)}}
> {{ - Ext. Redeliveries: 0 (from JMX)}}
> {{ => TOTAL LOGICAL FAILURES: 0}}
> {{--------------------------------}}
> {{Route ID: errorRoute3}}
> {{ - Total Exchanges: 1}}
> {{ - Completed: 1}}
> {{ - Failed (Unhandled): 0}}
> {{ - Failures Handled: 0 (from JMX)}}
> {{ - Ext. Redeliveries: 0 (from JMX)}}
> {{ => TOTAL LOGICAL FAILURES: 0}}
> {{--------------------------------}}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)