cita-cloud / consensus_raft

The raft consensus component for CITA Cloud.
Apache License 2.0
3 stars 0 forks source link

Support "status-code handle" #42

Closed Pencil-Yao closed 2 years ago

Pencil-Yao commented 2 years ago

status-code-rfc have passed

Raft micro-server needs to update to support status-code & handle different status-code.

for eg. Screenshot from 2022-05-30 14-50-24

Raft ignored StatusCode {500} and moved forward!! That can't make sense.

Pencil-Yao commented 2 years ago

StatusCode {500}: https://github.com/cita-cloud/status_code/blob/b7889b36f301a4f9a0f8e1c9e9b92c424626830d/src/lib.rs#L177