opencurve / curve

Curve is a sandbox project hosted by the CNCF Foundation. It's cloud-native, high-performance, and easy to operate. Curve is an open-source distributed storage system for block and shared file storage.
https://opencurve.io
Apache License 2.0
2.32k stars 521 forks source link

braft LeaderId #2991

Closed wsehjk closed 2 months ago

wsehjk commented 7 months ago

What problem does this PR solve?

Issue Number: #2555

Problem Summary:

  1. Determine what tasks are running on metaserver
  2. Cancel these tasks when the nodes don't serve as leader
  3. Reinitiate thes tasks when the node elected as leader

What's Changed:

How it Works:

Side effects(Breaking backward compatibility? Performance regression?):

Check List