Skip to content

Auto-port 5.0: Redis: Correctly release incomplete message on removal when using RedisArrayAggregator#16903

Merged
chrisvest merged 2 commits into
5.0from
auto-port-pr-16878-to-5.0
Jun 4, 2026
Merged

Auto-port 5.0: Redis: Correctly release incomplete message on removal when using RedisArrayAggregator#16903
chrisvest merged 2 commits into
5.0from
auto-port-pr-16878-to-5.0

Conversation

@netty-project-bot

Copy link
Copy Markdown
Contributor

Auto-port of #16878 to 5.0
Cherry-picked commit: ced30ad


Motivation:

The RedisArrayAggregator needs to ensure it releases buffered messages when the handler is removed as otherwise it will result in memory leaks.

Modifications:

  • fire exception when channel is closed while we still aggregate
  • release messages on handler removal
  • add unit tests

Result:

Fix memory leak

…isArrayAggregator (#16878)

Motivation:

The RedisArrayAggregator needs to ensure it releases buffered messages
when the handler is removed as otherwise it will result in memory leaks.

Modifications:

- fire exception when channel is closed while we still aggregate
- release messages on handler removal
- add unit tests

Result:

Fix memory leak

(cherry picked from commit ced30ad)
@chrisvest chrisvest added this to the 5.0.0.Final milestone Jun 4, 2026
@chrisvest chrisvest merged commit c31d687 into 5.0 Jun 4, 2026
13 checks passed
@chrisvest chrisvest deleted the auto-port-pr-16878-to-5.0 branch June 4, 2026 18:16
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.

3 participants