Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CLUSTER RESET forgets other nodes, but they don't forget you #1757

Open
zuiderkwast opened this issue Feb 20, 2025 · 5 comments
Open

CLUSTER RESET forgets other nodes, but they don't forget you #1757

zuiderkwast opened this issue Feb 20, 2025 · 5 comments
Assignees

Comments

@zuiderkwast
Copy link
Contributor

The CLUSTER RESET documentation says: "All the other nodes in the cluster are forgotten".

In reality, the node forgets the other nodes but the other nodes does not forget it. They will find it again soon.

It takes about 15 secs to re-join the cluster. So, we gonna have 15 seconds of errors which is pretty long for errors in such scenarios:

27859:M 19 Feb 2025 17:11:14.472 * Connection with replica 127.0.0.1:17383 lost.
27859:M 19 Feb 2025 17:11:29.523 * Sending MEET packet to node 096e0230bddddb11d32e36497adcc4235bffa7d1 () because there is no inbound link for it
27859:M 19 Feb 2025 17:11:29.593 * Successfully completed handshake with 096e0230bddddb11d32e36497adcc4235bffa7d1 ()

To make the rest of the cluster forget a node, we actually need to send CLUSTER FORGET to the other nodes in the cluster.

Idea: The CLUSTER RESET command could broadcast a forget message to the cluster.

Originally discussed by @skolosov-snap and others in #1674 (comment)

@zuiderkwast
Copy link
Contributor Author

@enjoy-binbin @PingXie @madolson WDYT?

@PingXie
Copy link
Member

PingXie commented Feb 20, 2025

Yep this is broken.

Idea: The CLUSTER RESET command could broadcast a forget message to the cluster.

That is what I am thinking too.

@zuiderkwast zuiderkwast moved this to Idea in Roadmap Feb 20, 2025
@skolosov-snap
Copy link

+1

@madolson
Copy link
Member

Yeah, broadcasting the forget seems reasonable to me.

@enjoy-binbin
Copy link
Member

This make sense to me, i had this idea a long time ago. So when a node receive a CLUSTER RESET, it broadcast a new FORGET message to tell the other nodes to forget about it?

@sungming2 sungming2 self-assigned this Feb 28, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Idea
Development

No branches or pull requests

6 participants