-
Notifications
You must be signed in to change notification settings - Fork 704
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
Split brain issue when migration from sentinel to sentinel #846
Comments
the current version we are using is 2937df8 |
Try the latest version, or modify the code to filter out |
let me try it. |
thank you @suxb201 it saves the day |
however, If we ignore the condition like this the final function filter(id, is_base, group, cmd_name, keys, slots, db_id, timestamp_ms)
if cmd_name == "PING" then
return 1, db_id -- disallow
end
if cmd_name == "REPLCONF" then
return 1, db_id -- disallow
end
if cmd_name == "OPINFO" then
return 1, db_id -- disallow
end
if cmd_name == "PUBLISH" and (keys[1]== nil or keys[1] == '' or keys[1] == "__sentinel__:hello") then
return 1, db_id -- disallow
end
return 0, db_id -- always allow and redirect to the same db_id
end |
Issue Description
But the problem is that the destination cluster got
split brain
issue which means thesentinel slaves
of the destination cluster contain the nodes of both the source cluster and the destination cluster. (see the screenshot below)Environment
Logs
If there are any error logs or other relevant logs, please provide them here.
Additional Information
Redis Source Cluster (1 master, 1 slave and 3 sentinel servers)
Redis Destination Cluster (1 master, 0 slaves and 3 sentinel servers)
The text was updated successfully, but these errors were encountered: