[Improvement] Return early in fast_round when the amount of KeyConflict
large than or equal to recover quorum
#825
Labels
good first issue
Good for newcomers
Improvement
Refactor or optimization, including process, performance or something like that
Currently, the
fast_round
incrates/curp/src/client/unary.rs
looks likeAs you can see, all the KeyConflict errors are ignored. We can count the
KeyConflict
errors. If the number of KeyConflict errors is equal to or larger than therecover_quorum
, which is about a quarter of the number of nodes in a cluster, we can return early from the fast round since the superquorum condition will never be met.The text was updated successfully, but these errors were encountered: