Skip to content

Cluster: Don't crash when adding a forgotten node to blacklist twice#12702

Merged
madolson merged 3 commits into
redis:unstablefrom
zuiderkwast:forgotten-node-already-in-blacklist-fix
Oct 31, 2023
Merged

Cluster: Don't crash when adding a forgotten node to blacklist twice#12702
madolson merged 3 commits into
redis:unstablefrom
zuiderkwast:forgotten-node-already-in-blacklist-fix

Conversation

@zuiderkwast

Copy link
Copy Markdown
Contributor

Fixes #12701

This is defensive code to avoid the problem. I haven't reproduced the crash though.

Comment thread src/cluster.c
@madolson madolson merged commit 8d67595 into redis:unstable Oct 31, 2023
@zuiderkwast zuiderkwast deleted the forgotten-node-already-in-blacklist-fix branch October 31, 2023 16:18
@oranagra oranagra added the release-notes indication that this issue needs to be mentioned in the release notes label Nov 1, 2023
@oranagra oranagra changed the title Don't crash when adding a forgotten node to blacklist twice Cluster: Don't crash when adding a forgotten node to blacklist twice Nov 1, 2023
@oranagra oranagra mentioned this pull request Nov 1, 2023
oranagra pushed a commit that referenced this pull request Nov 1, 2023
Add a defensive checks to prevent double freeing a node from the cluster blacklist.

(cherry picked from commit 8d67595)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

release-notes indication that this issue needs to be mentioned in the release notes

Projects

Development

Successfully merging this pull request may close these issues.

[CRASH] Cluster CLUSTERMSG_EXT_TYPE_FORGOTTEN_NODE

4 participants