wip: raft does not care about migrating
wip: optimize code
wip: raft election
wip
wip: fix raft leader missing log entries
wip
fix a dead lock
batch set slot route
wip: raft persist
wip
refactor cluster suite
remove relay
rename relay2
refactor: allow customizing client factory
test raft
refactor re-balance
avoid errors caused by inconsistent status on follower nodes during raft commits
test raft election
- the name of the variable "shard" has been defined, and change variable "shard" `s name in the function to avoid the case of "Variable Shadowing"
- remove unnecessary type conversion "uint32(hashCode)"
- shorten the lock time of concurrent.go`s function "Put"
- slightly optimize the value`s type of map concurrent.go`s function "RandomDistinctKeys" & avoid duplicate input the same map`s key
fix: uses the provided seed value to initialize the function rand, for fixing the generation of the same int in the case of multiple executions.
Limited ability, make it better~