-
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
2个从节点S1和S2,S1完成全量同步,S2全量同步执行一半,主从切换,将S1提升新主,S2切新主后,不再进行全量同步 #2436
Comments
问题原因是:S1和S2都已经在pika配置文件中设置了 replication_id,S2 在切新主后,replication_id 都相同,slave在MetaSync时,force_full_sync_ 不会被设置为 true,此时不会进入 TryDBSync 逻辑。S2 接下来会进入TrySync逻辑,新主S1在收到TrySync请求后,只会判断binlog文件是否已存在,如果存在,就不进行全量同步。 |
…d in its config. this must execute full sync(OpenAtomFoundation#2436)
…d in its config. this must execute full sync(OpenAtomFoundation#2436)
…cation_id in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444)" This reverts commit ab9ed71.
遇到该问题,需要运维人员介入。由运维与业务协商。 |
When encountering this problem, operation and maintenance personnel need to intervene. It is negotiated between operation and maintenance and business. |
…d in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…d in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…cation_id in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444)" (OpenAtomFoundation#2460) This reverts commit ab9ed71. Co-authored-by: liuchengyu <liuchengyu@360.cn>
Update: It is still doubtful whether this case exists and needs to be verified again. |
…d in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444) Co-authored-by: liuchengyu <liuchengyu@360.cn>
…cation_id in its config. this must execute full sync(OpenAtomFoundation#2436) (OpenAtomFoundation#2444)" (OpenAtomFoundation#2460) This reverts commit 8693a76. Co-authored-by: liuchengyu <liuchengyu@360.cn>
Is this a regression?
Yes
Description
2个从节点S1和S2,S1完成全量同步,S2全量同步执行一半,主从切换,将S1提升新主,S2切新主后,不再进行全量同步。
20240614更新:
1 这个case是否存在还存疑,需要再验证,因为即使replicationID相同,offset也不应该可以对的上
2 但有一个关联问题确实存在:
如果一主一从,从节点全量同步到一半的时候主挂了,这个时候从节点内部没有数据(或者都是脏数据)是没有资格提升为主的。 预计提供一个对外的标志位放在info命令的返回值中来告知该节点是否在全量同步过程中出现过意外
Please provide a link to a minimal reproduction of the bug
No response
Screenshots or videos
No response
Please provide the version you discovered this bug in (check about page for version information)
No response
Anything else?
No response
The text was updated successfully, but these errors were encountered: