Skip to content

Conversation

@MateuszNaKodach
Copy link
Contributor

closes #4009

…red` through the `SubscribingEventProcessor`
Copilot AI review requested due to automatic review settings December 8, 2025 14:06
@MateuszNaKodach MateuszNaKodach requested a review from a team as a code owner December 8, 2025 14:06
@MateuszNaKodach MateuszNaKodach requested review from abuijze, hatzlj and smcvb and removed request for a team December 8, 2025 14:06
@MateuszNaKodach MateuszNaKodach self-assigned this Dec 8, 2025
@MateuszNaKodach MateuszNaKodach added Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Bug Use to signal issues that describe a bug within the system. labels Dec 8, 2025
@MateuszNaKodach MateuszNaKodach added this to the Release 4.12.3 milestone Dec 8, 2025
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR fixes issue #4009 by implementing proper reporting of ignored events in SubscribingEventProcessor. Previously, events that could not be handled were silently skipped without notifying the configured MessageMonitor. Now, the processor filters events before creating a batch and explicitly calls reportIgnored() for unhandled events, ensuring proper monitoring and metrics collection.

Key changes:

  • Implemented event filtering logic in SubscribingEventProcessor.process() to check each event with canHandle() before batching
  • Events that cannot be handled are now reported as ignored via reportIgnored(), notifying the MessageMonitor
  • Added comprehensive test coverage to verify the ignored event reporting behavior

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
messaging/src/main/java/org/axonframework/eventhandling/SubscribingEventProcessor.java Adds filtering logic to check if events can be handled before batching; reports unhandled events as ignored to MessageMonitor; updates documentation to reflect new behavior
integrationtests/src/test/java/org/axonframework/integrationtests/eventhandling/SubscribingEventProcessorTest.java Adds default mock behavior for canHandle() in setUp; implements new test case verifying that reportIgnored() is called for events without handlers

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

…nore String event

- Added String event handler to SubscribingEventHandler in
  EventProcessingModuleTest to properly test span creation
@sonarqubecloud
Copy link

sonarqubecloud bot commented Dec 8, 2025

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Priority 1: Must Highest priority. A release cannot be made if this issue isn’t resolved. Type: Bug Use to signal issues that describe a bug within the system.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants