xline-kv / Xline

A geo-distributed KV store for metadata management
https://xline.cloud
Apache License 2.0
562 stars 71 forks source link

[Bug]: Implement ReadIndex #870

Open bsbds opened 2 days ago

bsbds commented 2 days ago

Description about the bug

When a network partition occurs, the leader in the smaller partition may not be aware that a new leader has already been elected in the cluster. If the original leader continues to serve read-only requests to clients during this time, it could result in stale reads. We should implement ReadIndex to enable read-only request on the leader.

Version

0.1.0

Relevant log output

No response

Code of Conduct

github-actions[bot] commented 2 days ago

👋 Thanks for opening this issue!

Reply with the following command on its own line to get help or engage: