-
Notifications
You must be signed in to change notification settings - Fork 23.5k
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
[CRASH] Can't replicate data from master to slave #8614
Comments
@guguri12 I don't see a crash in the logs, just a master node being demoted to replica and performing a full sync from its new master. Please provide more information if you believe there's an issue here. |
@yossigo Please see in below lines. Why the master node fail over to replica node? And Why the master node can't connect to replica node? I can't finding the root cause. 34111:M 07 Mar 2021 18:50:00.166 * Background saving terminated with success |
@guguri12 It was instructed by another node to fail over, after a majority of the nodes has determined the node is indeed failing. To see the full picture, you'll need to look at the logs of the other nodes as well. |
@yossigo Do you mean to look at the log file from replica node? In replica node, the message has shown as below: 8674:S 07 Mar 2021 18:50:44.889 * FAIL message received from 195b4a7a2664b34f76833620c633731ffb2d5171 about d8afbeb06e23e5f5a5f7afe4f6b87f6169d73179 |
@guguri12 No, the decision to initiate failover is reached by a majority of master nodes. You need to look at the logs of all master nodes to try to understand the sequence of events. |
@yossigo Do you mean view log file of the master node in the same shard or other master node? |
@guguri12 All master instances. |
@yossigo When the redis client connect to redis server cluster, should i set configuration to all instances (master and slave) ? |
@yossigo I have attached the log files from all master instances. After review again, i think there are 2 master instances that found this issue. |
@guguri12 configuration is done locally on a per-instance basis, so yes if you perform There are no logs attached, have you been able to trace them and get to a resolution? Or do you still suspect there is an issue with Redis here? |
master_node_logs.txt |
@guguri12 Looks like you have experienced a temporary node/network failure which resulted with a quorum decision to failover the node. Later on the failed over node was again communicating with the other nodes and re-synced with the new master as a replica. This is where it all started:
|
Crash report
Paste the complete crash log between the quotes below. Please include a few lines from the log preceding the crash report to provide some context.
Aditional information
RedHAT v8.3 on VM and Redis v5.0.5
Can't reproduce.
The text was updated successfully, but these errors were encountered: