Skip to content
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

日志共识点后退的问题 #318

Open
leehom opened this issue Jul 8, 2024 · 0 comments
Open

日志共识点后退的问题 #318

leehom opened this issue Jul 8, 2024 · 0 comments

Comments

@leehom
Copy link

leehom commented Jul 8, 2024

image

最近分析dledger,上图2处
计算committedIndex,请求携带的共识点,即集群的共识点,自身写入最后index,取较少的, 但memberState.followerUpdateCommittedIndex,计算committedIndex小于现有的committedIndex是不会更新,保留现有的。
下图比对2.4处, “term不一样,返回本节点term的第一个写入的index”, 回退到上一个term,可能大量的消息截取,出现共识点回退
! 是否存在本节点的committedIndex大于写入存储的index?
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant