Hoverbear / old-raft-rs

[Incomplete] A Raft implementation in Rust
https://hoverbear.github.io/raft-rs/raft/
MIT License
266 stars 41 forks source link

Stale Reads #107

Open danburkert opened 9 years ago

danburkert commented 9 years ago

As of today the master will immediately satisfy client queries, which may result in stale reads during failover scenarios. Diego's thesis goes into detail about the cause and possible solutions to this issue in section 6.4. We should come up with a plan for how to tackle this.

tbg commented 9 years ago

There's this one: https://www.cs.cmu.edu/~dga/papers/leases-socc2014.pdf I had looked at it before and it seemed promising after some adjustments.

posix4e commented 9 years ago

One cute little hack for now is to have the request respond with the time since a heartbeat. Then we can just check this value to see if this is consistent or merely timeline consistent