Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Do not raise an exception on last_leader_operation.
If patroni is attached to an already running instance, the load_cluster during its initial run_cycle will return Nones for DCS key values, but those values will actually be examined in the function that checks for the healthiest node. Fix the issue by making that function handle None values correctly, and by making sure that even on the first we load some meaningful values from DCS by touching the member key there first (which would also create the whole /service/cluster_name directory if it's not there).
- Loading branch information