-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
3.5 Slaver会忽略手动指定的master ip,而使用master的网卡ip,导致在逻辑局域网络下无法进行同步 #1904
Comments
嗯,这个的确是有问题。原因是master同步给slave的数据中包含了一个info文件,里边记录了master的host和port。slave在接收完所有数据之后会去比对master的host和port,如果不一致会认为同步失败。这个逻辑的确有问题。 |
Describe the bug
master和slaver通过逻辑网络(SDN,VPN或者类似的东西)连通,在实际同步时,slaver会忽略
slaveof
设置中指定的master逻辑ip,而读取master的物理网卡ip并尝试连接,导致无法连通。在3.3.6中无此bug
Repreduce
master:
主网卡(公网) 192.168.1.1
逻辑网卡 23.23.23.1
slaver:
主网卡(公网) 192.168.100.1 和master不在同一个局域网
逻辑网卡 23.23.23.2 和master网络打通
在配置中设置
slaveof : 23.23.23.1:9221
启动master和slaver
Logs
Expected behavior
slaver应当始终使用
slaveof
中提供的master ipAdditional context
版本: 3.5.0-alpha
The text was updated successfully, but these errors were encountered: