Skip to content
This repository was archived by the owner on Feb 6, 2024. It is now read-only.
This repository was archived by the owner on Feb 6, 2024. It is now read-only.

Improve the cleaning mechanism of ShardNode #296

@ZuLiangWang

Description

@ZuLiangWang

Describe this problem
We found that the failover mechanism of the HoraeDB cluster failed, and the shard was not migrated when the machine went down.

Steps to reproduce

  • Make the etcd root path configuration in HoraeDB and HoraeMeta inconsistent.
  • Shut down a HoraeDB node.

Additional Information

  • Add drop ShardNode api to deal with some extreme situations.
  • Add a new way to detect failed nodes, not only relying on etcd's lease event.
    1. Use a background thread to continuously detect failed nodes.
    2. Detect failed nodes through heartbeat.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions