Skip to content

Defensive DLQ processor unwrap to support custom EHC decorators#157

Open
stefanmirkovic wants to merge 1 commit into
mainfrom
fix/dlq-discovery-defensive-unwrap
Open

Defensive DLQ processor unwrap to support custom EHC decorators#157
stefanmirkovic wants to merge 1 commit into
mainfrom
fix/dlq-discovery-defensive-unwrap

Conversation

@stefanmirkovic

Copy link
Copy Markdown
Contributor

Walk EHC chain to find SequencedDeadLetterProcessor

The strict is AxoniqPlatformEventHandlingComponent check in discoverEntries() throws when applications stack their own EventHandlingComponent decorators (e.g. SequenceOverridingEHC for sequencing policy overrides) above the platform wrapper. One un-unwrappable EHC took down discovery for every processor in the application, leaving the UI empty.

Replace the strict check with a defensive walk: direct cast, AxoniqPlatformEHC unwrap, reflective descent through EHC-typed fields, and a fallback to the legacy SequencedDeadLetterProcessor lookup. Skip with a WARN as a last resort instead of aborting.

@stefanmirkovic stefanmirkovic self-assigned this Jun 5, 2026
@sonarqubecloud

sonarqubecloud Bot commented Jun 5, 2026

Copy link
Copy Markdown

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant