compose / governor

Runners to orchestrate a high-availability PostgreSQL
MIT License
512 stars 75 forks source link

golang-custom-raft: maximum_lag_on_failover doesn't work as it should #46

Open doodles526 opened 7 years ago

doodles526 commented 7 years ago

maximum_lag_on_failover incorrectly tries to query an existing leader for the WAL position. Problem is, the time which maximum_lag_on_failover should be checked - a leader wouldn't exist. Solution would be to implement historic information on members