Skip to content

Modules: Do not auto-unblock clients if not blocked on keys#6922

Merged
antirez merged 1 commit intoredis:unstablefrom
guybe7:refix_blocked_module_memleak
Feb 27, 2020
Merged

Modules: Do not auto-unblock clients if not blocked on keys#6922
antirez merged 1 commit intoredis:unstablefrom
guybe7:refix_blocked_module_memleak

Conversation

@guybe7
Copy link
Collaborator

@guybe7 guybe7 commented Feb 23, 2020

No description provided.

@guybe7
Copy link
Collaborator Author

guybe7 commented Feb 23, 2020

@antirez you had a good point in https://github.com/antirez/redis/pull/6699 - apparently some existing modules rely on the old behaviour in which clients are not automatically unblocked in unblockClientFromModule (when timedout, disconnected, etc.)
this commit "reverts" the auto-unblock just for clients that are not blocked on keys (in which case the module needs "to know what it's doing" because if RM_UnblockClient will not be called memory will leak)

@yossigo
Copy link
Collaborator

yossigo commented Feb 23, 2020

This fixes a real regression in blocking clients API.

@antirez antirez merged commit 79de8f3 into redis:unstable Feb 27, 2020
@antirez
Copy link
Contributor

antirez commented Feb 27, 2020

Thanks, merged. This PR was flagged as not ok by the actions. Waiting some time but I think we should remove it while it is totally unreliable.

JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Mar 5, 2020
Modules: Do not auto-unblock clients if not blocked on keys
oranagra added a commit that referenced this pull request Jul 4, 2021
…ound (#9192)

fixes test issue introduced in #9167

1. invalid reads due to accessing non-retained string (passed as unblock context).
2. leaking module blocked client context, see #6922 for info.
oranagra added a commit that referenced this pull request Jul 21, 2021
…ound (#9192)

fixes test issue introduced in #9167

1. invalid reads due to accessing non-retained string (passed as unblock context).
2. leaking module blocked client context, see #6922 for info.

(cherry picked from commit a8518cc)
JackieXie168 pushed a commit to JackieXie168/redis that referenced this pull request Sep 8, 2021
…ound (redis#9192)

fixes test issue introduced in redis#9167

1. invalid reads due to accessing non-retained string (passed as unblock context).
2. leaking module blocked client context, see redis#6922 for info.
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