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

hyperledger-labs / fabric-smart-client / 26579103782 / 3
71%
main: 71%

Build:
DEFAULT BRANCH: main
Ran 29 May 2026 08:14AM UTC
Files 477
Run time 12s
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: 40.669% (+0.008%) from 40.661%
26579103782.3

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>

14279 of 35110 relevant lines covered (40.67%)

63.63 hits per line

Source Files on job itest-fabric-atsa - 26579103782.3
  • Tree
  • List 477
  • Changed 13
  • Source Changed 1
  • Coverage Changed 13
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26579103782
  • 4544a0cd on github
  • Prev Job for on main (#26570305140.8)
  • Next Job for on main (#26634201560.3)
  • 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