Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Handle read index request with lease #5401
What have you changed?
Currently, if a replica requests a read index, then will execute the following steps:
These steps include 2RTT, but if a leader has a valid lease, returning its committed index as a read index would be safe, then a read index request would just cost 1RTT.
What is the type of the changes?
How is the PR tested?
Does this PR affect documentation (docs) or should it be mentioned in the release notes?
Does this PR affect