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

hyperledger-labs / fabric-smart-client / 40507528697
91%

Build:
DEFAULT BRANCH: main
Ran 27 Oct 2026 12:56PM UTC
Jobs 24
Files 496
Run time 1min
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

27 Oct 2026 12:54PM UTC coverage: 91.405% (+0.01%) from 91.391%
40507528697

push

github

web-flow
fix(storage): retry a Postgres too_many_connections on connect (#2280)

A Postgres server at max_connections rejects a new connection with SQLSTATE 53300 (too_many_connections). That is common right after a failover, when every client reconnects to the new primary at once. ErrorMapper.WrapError had no entry for 53300 and returned it unchanged, so the committer degraded the block instead of retrying it.

WrapError now maps 53300 to driver.ErrConnectionLost, as it maps 57P03 (cannot_connect_now), and retryBlock retries it with backoff until the server accepts the connection or the node shuts down. SqlBusy would give it the bounded retry budget, which a reconnect storm can outlast. The other class 53 codes report a limit hit by a running statement. Reconnecting does not clear them, so they stay unmapped.

pgx joins the errors of every connect attempt into one *pgconn.ConnectError, with one or two attempts per host. WrapError maps a failed connect to driver.ErrConnectionLost when any attempt reported a SQLSTATE that maps to it, whichever host is listed first. Otherwise the first SQLSTATE decides, so a rejected password stays unmapped. An attempt without a SQLSTATE does not override another attempt's SQLSTATE: under sslmode=prefer, pgx records such an attempt for a TLS handshake the server refused before it retries the same host in plaintext.

TestErrorMapper_ConnectTimeout is renamed to TestErrorMapper_Connect and gains fake servers that refuse TLS and reject the startup message with a given SQLSTATE. It covers 53300 on one host, two-host DSNs that mix 53300, 28000 and a silent host in both orders, and sslmode=prefer.

Fixes #2278

Signed-off-by: Marcus Brandenburger <bur@zurich.ibm.com>

10 of 10 new or added lines in 1 file covered. (100.0%)

6 existing lines in 3 files now uncovered.

30108 of 32939 relevant lines covered (91.41%)

1247.72 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
94.89
0.0% platform/view/services/comm/host/websocket/ws/multiplexed_provider.go
2
76.69
-0.61% platform/fabric/core/generic/msp/idemix/provider.go
2
75.32
-2.6% platform/fabric/services/db/driver/sql/sqlite/vault.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fsc-stoprestart - 40507528697.1 27 Oct 2026 12:58PM UTC 248
34.17
GitHub Action Run
2 itest-fabric-atsa - 40507528697.2 27 Oct 2026 01:01PM UTC 447
44.9
GitHub Action Run
3 itest-fsc-pingpong - 40507528697.3 27 Oct 2026 12:59PM UTC 252
34.97
GitHub Action Run
4 utest-extensions - 40507528697.4 27 Oct 2026 12:57PM UTC 8
52.84
GitHub Action Run
5 itest-fabric-iou-libp2p - 40507528697.5 27 Oct 2026 12:59PM UTC 457
37.18
GitHub Action Run
6 itest-fabricx-faultrecovery - 40507528697.6 27 Oct 2026 01:00PM UTC 479
28.81
GitHub Action Run
7 itest-fabric-runtimeconfig - 40507528697.7 27 Oct 2026 12:59PM UTC 457
39.78
GitHub Action Run
8 itest-fabric-faultrecovery - 40507528697.8 27 Oct 2026 01:03PM UTC 447
40.11
GitHub Action Run
9 itest-fabric-iouhsm - 40507528697.9 27 Oct 2026 01:00PM UTC 457
40.86
GitHub Action Run
10 itest-fabric-events - 40507528697.10 27 Oct 2026 12:59PM UTC 452
29.59
GitHub Action Run
11 itest-fabric-iou - 40507528697.11 27 Oct 2026 01:01PM UTC 457
41.69
GitHub Action Run
12 itest-fabricx-atsa - 40507528697.12 27 Oct 2026 12:57PM UTC 479
31.67
GitHub Action Run
13 itest-fabricx-simple - 40507528697.13 27 Oct 2026 12:57PM UTC 479
28.86
GitHub Action Run
14 itest-fabric-atsachaincode - 40507528697.14 27 Oct 2026 12:58PM UTC 452
31.42
GitHub Action Run
15 utest-postgres - 40507528697.15 27 Oct 2026 12:59PM UTC 487
10.59
GitHub Action Run
16 itest-fabricx-configupdate - 40507528697.16 27 Oct 2026 12:58PM UTC 479
29.41
GitHub Action Run
17 itest-fsc-signedpingpong - 40507528697.17 27 Oct 2026 12:58PM UTC 247
32.38
GitHub Action Run
18 utest-root - 40507528697.18 27 Oct 2026 12:59PM UTC 487
89.58
GitHub Action Run
19 itest-fabricx-iou - 40507528697.19 27 Oct 2026 12:57PM UTC 479
30.19
GitHub Action Run
20 itest-fabricx-deployment - 40507528697.20 27 Oct 2026 12:56PM UTC 479
29.34
GitHub Action Run
21 itest-fabric-configupdate - 40507528697.21 27 Oct 2026 12:59PM UTC 457
39.63
GitHub Action Run
22 itest-fabric-stoprestart - 40507528697.22 27 Oct 2026 01:00PM UTC 447
32.16
GitHub Action Run
23 itest-fabricx-multiendorsement - 40507528697.23 27 Oct 2026 12:57PM UTC 479
29.41
GitHub Action Run
24 itest-fabric-twonets - 40507528697.24 27 Oct 2026 12:59PM UTC 447
30.32
GitHub Action Run
Source Files on build 40507528697
  • Tree
  • List 496
  • Changed 43
  • Source Changed 1
  • Coverage Changed 43
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #40507528697
  • 9cbf7586 on github
  • Prev Build on main (#40498463864)
  • Next Build on main (#40511039735)
  • Delete
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc