Skip to content

Support event-bus interceptor chain failure. - #6257

Merged
vietj merged 1 commit into
masterfrom
fail-msg-from-interceptor
Jul 24, 2026
Merged

Support event-bus interceptor chain failure.#6257
vietj merged 1 commit into
masterfrom
fail-msg-from-interceptor

Conversation

@vietj

@vietj vietj commented Jul 24, 2026

Copy link
Copy Markdown
Member

Motivation:

The event-bus interceptor chain does not provide a clean way to fail a message interception, some case can be achieved by failing the message itself but that works for limited cases and it does not handle the interception in progress.

Cleanly failing a message delivery can be useful in some scenario, specially for testing purposes.

Changes:

Add a DeliveryContext#fail method that performs a clean fail of the message by interrupting the interception chain and properly failing the message:

The message will not make progress anymore and the sender will receive a failure notification whether it is the write future for outbound message writes or the reply handler.

@vietj vietj added this to the 5.2.0 milestone Jul 24, 2026
@vietj vietj self-assigned this Jul 24, 2026
@vietj
vietj force-pushed the fail-msg-from-interceptor branch from 9b08477 to 6f8a7dc Compare July 24, 2026 07:22
Motivation:

The event-bus interceptor chain does not provide a clean way to fail a message interception, some case can be achieved by failing the message itself but that works for limited cases and it does not handle the interception in progress.

Cleanly failing a message delivery can be useful in some scenario, specially for testing purposes.

Changes:

Add a DeliveryContext#fail method that performs a clean fail of the message by interrupting the interception chain and properly failing the message:

The message will not make progress anymore and the sender will receive a failure notification whether it is the write future for outbound message writes or the reply handler.
@vietj
vietj force-pushed the fail-msg-from-interceptor branch from 6f8a7dc to 41ba05f Compare July 24, 2026 07:37
@vietj
vietj merged commit 3c6d7fe into master Jul 24, 2026
8 checks passed
@vietj
vietj deleted the fail-msg-from-interceptor branch July 24, 2026 08:02
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