Skip to content

GH-3116. Fix memory leak in StreamBridge on RefreshRemoteApplicationE…#3174

Open
ArtemGamov wants to merge 1 commit intospring-cloud:mainfrom
ArtemGamov:GH-3116
Open

GH-3116. Fix memory leak in StreamBridge on RefreshRemoteApplicationE…#3174
ArtemGamov wants to merge 1 commit intospring-cloud:mainfrom
ArtemGamov:GH-3116

Conversation

@ArtemGamov
Copy link

GH-3116. Fix memory leak in StreamBridge on RefreshRemoteApplicationEvent #3116.

Graceful channel termination – instead of simply closing channels, the method first performs producer unbinding.

Why this is needed:

Prevents dangling connections and resource leaks

Properly notifies associated producers that the channel is no longer available

Ensures clean shutdown without potential issues during restart

How it works:

Iterates through all cached channels

For each channel of type AbstractMessageChannel, retrieves its name

Calls bindingService.unbindProducers(channelName) to unbind producers

If errors occur – logs them but continues processing other channels

…ApplicationEvent spring-cloud#3116

Signed-off-by: gamovartem <art95081@rambler.ru>
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