Skip to content

Conversation

@sajinieKavindya
Copy link
Member

Purpose

Ideally, the defined sequence and endpoints should be destroyed after the components who depend on them are destroyed.

@sajinieKavindya sajinieKavindya force-pushed the graceful-shutdown-inbound-endpoint branch from 0f43cc4 to df7f31c Compare October 20, 2025 07:28
// destroy the Message Stores
for (MessageStore ms : messageStores.values()) {
if (ms instanceof AbstractMessageProcessor) {
((AbstractMessageProcessor) ms).destroy(preserverState);
Copy link
Contributor

Choose a reason for hiding this comment

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

Don't we have any usage of preserverState?

Copy link
Member Author

Choose a reason for hiding this comment

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

Here, it checks if a MessageStore instance is an instance of AbstractMessageProcessor, which is wrong IMO. Also, there is no destroy(preserverState) method in MessageStore.

@sajinieKavindya sajinieKavindya merged commit b298695 into wso2:master Oct 20, 2025
1 of 2 checks passed
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.

2 participants