Skip to content

CAMEL-23615: Add getLastExchangeFailureHandledTimestamp() to management API and dev consoles#23526

Merged
davsclaus merged 1 commit into
mainfrom
CAMEL-23615
May 27, 2026
Merged

CAMEL-23615: Add getLastExchangeFailureHandledTimestamp() to management API and dev consoles#23526
davsclaus merged 1 commit into
mainfrom
CAMEL-23615

Conversation

@davsclaus
Copy link
Copy Markdown
Contributor

Summary

  • Adds getLastExchangeFailureHandledTimestamp() to ManagedPerformanceCounterMBean — tracks when the last handled failure occurred (e.g. routed to dead letter channel)
  • Implementation in ManagedPerformanceCounter sets the timestamp alongside the existing failuresHandled counter increment in completedExchange()
  • Includes the new timestamp in dumpStatsAsXml() and statsAsJSon() output
  • Added to all dev consoles: Route, RouteGroup, Processor, Consumer, Context (both text and JSON output)

Test plan

  • ManagedFailureHandledTimestampTest — verifies timestamp is set when using deadLetterChannel, and lastExchangeFailureTimestamp remains null
  • Existing ManagedRouteDumpStatsAsXmlTest and ManagedRouteDumpStatsAsJSonTest pass
  • CI green

🤖 Generated with Claude Code

Copy link
Copy Markdown
Contributor

@gnodet gnodet left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Adds getLastExchangeFailureHandledTimestamp() to the management API MBean interfaces and dev consoles. Useful for operators monitoring when the last failure was handled — complements the existing failure counters with temporal information.

Implementation is consistent across MBean interfaces and dev console output.

LGTM.

Fully automatic review from Claude Code

…nt API and dev consoles

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@github-actions
Copy link
Copy Markdown
Contributor

🌟 Thank you for your contribution to the Apache Camel project! 🌟
🤖 CI automation will test this PR automatically.

🐫 Apache Camel Committers, please review the following items:

  • First-time contributors require MANUAL approval for the GitHub Actions to run
  • You can use the command /component-test (camel-)component-name1 (camel-)component-name2.. to request a test from the test bot although they are normally detected and executed by CI.
  • You can label PRs using skip-tests and test-dependents to fine-tune the checks executed by this PR.
  • Build and test logs are available in the summary page. Only Apache Camel committers have access to the summary.

⚠️ Be careful when sharing logs. Review their contents before sharing them publicly.

@github-actions github-actions Bot added the core label May 27, 2026
@github-actions
Copy link
Copy Markdown
Contributor

🧪 CI tested the following changed modules:

  • core/camel-console
  • core/camel-management-api
  • core/camel-management

ℹ️ Dependent modules were not tested because the total number of affected modules exceeded the threshold (50). Use the test-dependents label to force testing all dependents.

Build reactor — dependencies compiled but only changed modules were tested (3 modules)
  • Camel :: Console
  • Camel :: Management
  • Camel :: Management API

⚙️ View full build and test results

@davsclaus davsclaus merged commit f18de42 into main May 27, 2026
6 checks passed
@davsclaus davsclaus deleted the CAMEL-23615 branch May 27, 2026 06:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants