• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

patroni / patroni / 15464329468
100%
master: 100%

Build:
Build:
LAST BUILD BRANCH: REL_4_0
DEFAULT BRANCH: master
Ran 05 Jun 2025 10:15AM UTC
Jobs 3
Files 57
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

05 Jun 2025 10:08AM UTC coverage: 99.855%. Remained the same
15464329468

push

github

CyberDem0n
Check that synchronous_standby_names contains expected value (#3370)

* Change interface of SyncHandler.current_state()

Make it always return nodes from synchronous_standby_names and
sync_confirmed instead of numsync_confirmed.

* Check that synchronous_standby_names contains expected value

Current mechanism implementing state machine for non-quorum synchronous
replication didn't check actual value of synchronous_standby_names, what
resulted in stale value of synchronous_standby_names being used when
pg_stat_replication is a subset of synchronous_standby_names.

Such situation is mainly possible when standby nodes with replicatefrom
tag connect to the primary because cascading replicas are temporary not
accessible.

To prevent it from happening we implement following measures:
1. Check the actual value of synchronous_standby_names when deceding
   whether we should continue to run state machine
2. Take into account `replicatefrom` tag on nodes that are streaming
   from the primary and don't consider them to be synchronous candidates
   if some other node in a chain already streaming from the primary.

Close https://github.com/patroni/patroni/issues/3369

14495 of 14516 relevant lines covered (99.86%)

2.98 hits per line

Jobs
ID Job ID Ran Files Coverage
1 unit-macos - 15464329468.1 05 Jun 2025 10:32AM UTC 57
99.78
GitHub Action Run
2 unit-windows - 15464329468.2 05 Jun 2025 10:32AM UTC 57
98.83
3 unit-ubuntu - 15464329468.3 05 Jun 2025 10:32AM UTC 57
99.86
Source Files on build 15464329468
  • Tree
  • List 57
  • Changed 1
  • Source Changed 0
  • Coverage Changed 1
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • 2892a0c6 on github
  • Prev Build on REL_4_0 (#15462167674)
  • Next Build on REL_4_0 (#15495464285)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc