You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
If the connection between master and slave is broken (reasons may be network error, restarting master... ) after changing the password of master, the slave can't resynchronize with master again automatically. The resynchronization will fail because slave can't auth master successfully though the masterauth of slave is set rightly. It can be resolved by restarting slave with new masterauth or execute slaveof no one to reset the master-slave relationship.
OS: all
Version: all
To Reproduce
Steps to reproduce the behavior:
Sync server B(slave) with server A(master)
Set or change requirepass of A and masterauth of B at the same time
Restart master with new password, then slave can't resync with master.
Expected behavior
The B(slave) can re-sync with A(master) automatically.
Reason Analysis
When slave sync with master, a ReplicationThread object will be created and the password of master will be assigned to its member variable auth_. Although the value of masterauth is re-assigned, auth_ will still hold the old value because it can't be re-assigned dynamically.
The text was updated successfully, but these errors were encountered:
Describe the bug

If the connection between master and slave is broken (reasons may be network error, restarting master... ) after changing the password of master, the slave can't resynchronize with master again automatically. The resynchronization will fail because slave can't auth master successfully though the
masterauth
of slave is set rightly. It can be resolved by restarting slave with newmasterauth
or executeslaveof no one
to reset the master-slave relationship.To Reproduce
Steps to reproduce the behavior:
requirepass
of A andmasterauth
of B at the same timeExpected behavior
The B(slave) can re-sync with A(master) automatically.
Reason Analysis
When slave sync with master, a
ReplicationThread
object will be created and the password of master will be assigned to its member variableauth_
. Although the value ofmasterauth
is re-assigned,auth_
will still hold the old value because it can't be re-assigned dynamically.The text was updated successfully, but these errors were encountered: