Skip to content

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

Open
@leehom

Description

image

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions