Skip to content

Conversation

@vietj
Copy link
Member

@vietj vietj commented Oct 9, 2025

Motivation:

The current implementation of DeliveryContext#next assumes the same thread makes interceptor delivery progress, this API however assumes any thread can make interceptor progress.

Changes:

Rewrite the implementation of DeliveryContext#next with an atomic interceptor index that guarantees that progress is visible across threads until the last interceptor is invoked.

…by different threads.

Motivation:

The current implementation of DeliveryContext#next assumes the same thread makes interceptor delivery progress, this API however assumes any thread can make interceptor progress.

Changes:

Rewrite the implementation of DeliveryContext#next with an atomic interceptor index that guarantees that progress is visible accross threads until the last interceptor is invoked.
@vietj vietj added this to the 4.5.22 milestone Oct 9, 2025
@vietj vietj added the bug label Oct 9, 2025
@vietj vietj merged commit aec6053 into 4.x Oct 9, 2025
9 of 13 checks passed
@vietj vietj deleted the event-bus-interceptor-delivery-context-bug-fix-4.x branch October 9, 2025 09:28
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