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

hyperledger-labs / fabric-smart-client / 26579103782
74%

Build:
DEFAULT BRANCH: main
Ran 28 May 2026 02:04PM UTC
Jobs 15
Files 539
Run time 2min
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

28 May 2026 01:54PM UTC coverage: 71.197% (+0.2%) from 70.95%
26579103782

push

github

web-flow
fix(fabric/ordering): always discard failed connections in BFT broadcast (#1485)

* fix(fabric/ordering): always discard failed connections in BFT broadcast

Broadcast() only ran its usedConnections cleanup on the overall-failure path. When a broadcast partially failed but still cleared the BFT success threshold -- e.g. 3 of 4 orderers acked, the 4th errored on Send/Recv or returned a non-SUCCESS status -- the failed connections never got discarded. Their connSem semaphore units stayed held and their gRPC streams stayed open for the lifetime of the process. Under sustained partial-failure conditions (one slow/flaky orderer that intermittently errors on Recv), this compounds until connSem is exhausted, after which getConnection falls back to its slow path and throughput collapses.

Move the cleanup loop above the threshold check so it runs on every path. Successful connections are already returned to their pools by releaseConnection (which does not touch the semaphore), so this only affects the previously-leaking failed-connection set.

Test: TestBFTBroadcaster_DiscardsFailedConnectionsOnPartialFailureSuccess exercises the success-with-partial-failure path against a pre-filled connection pool and asserts that exactly one semaphore unit is freed after the broadcast returns. Pre-fix the test fails (no unit released); post-fix it passes.

Signed-off-by: Evan <evanyan@sign.global>
Signed-off-by: Marcus Brandenburger <mbrandenburger@users.noreply.github.com>
Co-authored-by: Marcus Brandenburger <mbrandenburger@users.noreply.github.com>

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

8 existing lines in 4 files now uncovered.

28370 of 39847 relevant lines covered (71.2%)

2530.9 hits per line

Coverage Regressions

Lines Coverage ∆ File
3
90.24
0.0% platform/view/services/comm/p2p.go
3
50.0
-25.0% platform/view/services/storage/driver/sql/postgres/errormapper.go
1
98.08
-1.92% platform/common/utils/cache/timeout.go
1
44.44
-11.11% platform/common/utils/collections/maps.go
Jobs
ID Job ID Ran Files Coverage
1 itest-fabricx-simple - 26579103782.1 28 May 2026 02:04PM UTC 504
25.41
GitHub Action Run
2 itest-fabric-events - 26579103782.2 28 May 2026 02:08PM UTC 482
25.79
GitHub Action Run
3 itest-fabric-atsa - 26579103782.3 28 May 2026 02:11PM UTC 477
40.67
GitHub Action Run
4 itest-fabricx-deployment - 26579103782.4 28 May 2026 02:04PM UTC 504
26.27
GitHub Action Run
5 itest-fabricx-iou - 26579103782.5 28 May 2026 02:04PM UTC 506
26.6
GitHub Action Run
6 itest-fabric-atsachaincode - 26579103782.6 28 May 2026 02:08PM UTC 482
28.3
GitHub Action Run
7 itest-fabric-twonets - 26579103782.7 28 May 2026 02:09PM UTC 477
27.35
GitHub Action Run
8 itest-fabric-iou - 26579103782.8 29 May 2026 08:14AM UTC 487
37.84
GitHub Action Run
9 itest-fabricx-multiendorsement - 26579103782.9 28 May 2026 02:04PM UTC 504
26.28
GitHub Action Run
10 utest-postgres - 26579103782.10 28 May 2026 02:04PM UTC 538
7.5
GitHub Action Run
11 utest - 26579103782.11 28 May 2026 02:04PM UTC 538
51.2
GitHub Action Run
12 itest-fsc-stoprestart - 26579103782.12 28 May 2026 02:06PM UTC 275
28.82
GitHub Action Run
13 itest-fabric-stoprestart - 26579103782.13 28 May 2026 02:12PM UTC 477
29.19
GitHub Action Run
14 itest-fabric-iouhsm - 26579103782.14 28 May 2026 02:12PM UTC 487
37.19
GitHub Action Run
15 itest-fsc-pingpong - 26579103782.15 28 May 2026 02:10PM UTC 275
30.36
GitHub Action Run
Source Files on build 26579103782
  • Tree
  • List 539
  • Changed 28
  • Source Changed 1
  • Coverage Changed 28
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • Github Actions Build #26579103782
  • 4544a0cd on github
  • Prev Build on main (#26570305140)
  • Next Build on main (#26634201560)
  • Delete
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