Skip to content

Replica cannot be synced #142

@Git-Yang

Description

@Git-Yang

Problem Description:

  • Node replicas cannot continue syncing when the batch message sync write process partially fails.

Cause Analysis:

  1. The write of the batch replica fails partly. For example, the replica index is 1-4, index=1-3 is successfully written, but index=4 fails.
    image
  2. The master node sync request timed out , and resync the replicas with index=1-4.
    image
    3.The slave node rewrites the batch replicas, but at this time writeIndex=3, request.getFirstEntryIndex() = 1, the check throws an exception, but the exception is not handled, causing the master node to time out again. Repeat the above process.
    image

Repair:
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