Repository navigation
Free pending RedisCluster MULTI callbacks on destruction - #2956
Open
ebubekiryigit wants to merge 2 commits into
Open
ebubekiryigit wants to merge 2 commits into
ebubekiryigit wants to merge 2 commits into
Conversation
Release pending fold items and their owned contexts when the object is destroyed without EXEC or DISCARD. Add a regression with queued GET and HMGET commands.
Warm up connection bookkeeping before measuring retained transaction contexts. Increase the sample window and allow bounded allocator noise while keeping the regression well below the unfixed memory growth.
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Destroying a RedisCluster object with an open MULTI leaves its pending reply callbacks and allocated callback contexts behind.
Call the existing cluster_free_queue() helper during object destruction. This releases pending callbacks and their registered contexts without executing the transaction or changing connection handling.
Add a memory regression test using queued GET and HMGET commands. A warmup and bounded tolerance accommodate connection bookkeeping while still detecting retained transaction contexts.
Validation:
Separate aggregate-result ownership leaks in abandoned or discarded distributed commands, such as MGET/MSETNX, remain outside this patch and are addressed in #2798.