Skip to content

Unable to push data problem #87

@Git-Yang

Description

@Git-Yang

Problem Description

  • After the cluster is started, a follower node in the Broker group is unavailable.
  • After the node was restored, it was found that the data could not be synchronized.
    image

Problem Analysis

  • After the cluster is started, a follower node in the Broker group is unavailable.
  • When the n1 node is restored, the message that the leader node pushes to the n1 node has expired.
  • At this time, the leader node cannot obtain the message to be pushed and throws an exception.
    image

Code Analysis

  • When the entry corresponding to writeIndex does not exist, an exception is thrown.
  • Capture and print the exception information in doWork, and then execute append again.
    image
    image

Metadata

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