pg.ddx.io  patroni/patroni GitHub issues and pull requests  
help / color / mirror / Atom feed
From: CyberDem0n (@CyberDem0n) <noreply+CyberDem0n@github.com>
To: patroni/patroni <noreply+patroni-patroni@github.com>
Subject: Re: [patroni/patroni] PR #3803: Ignore peers on an older timeline when choosing the healthiest node
Date: Thu, 19 Nov 2026 13:51:21 +0000
Message-ID: <gh-patroni-patroni-3803-rc4629656643@github.com> (raw)
In-Reply-To: <gh-patroni-patroni-3803@github.com>
References: <gh-patroni-patroni-3803@github.com>

(on tests/test_ha.py)

```suggestion
            # diverged voter ahead of us still votes, but only if the divergence is proven by a known switchpoint
            self.ha.fetch_node_status = get_node_status(wal_position=11, timeline=2, replay_lsn=9)
            self.assertTrue(self.ha._is_healthiest_node(members))
            self.ha.fetch_node_status = get_node_status(wal_position=11, timeline=2, replay_lsn=11)
            with patch.object(Cluster, 'history', PropertyMock(return_value=None)):
                self.assertFalse(self.ha._is_healthiest_node(members))
```

view thread (15+ messages)  latest in thread

Message-ID: <gh-patroni-patroni-3803-rc4629656643@github.com>
Permalink:  ../gh-patroni-patroni-3803-rc4629656643@github.com/

 · 


This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox