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

prisma-risk / tsoracle / 26416857181 / 1
95%
main: 95%

Build:
DEFAULT BRANCH: main
Ran 25 May 2026 07:49PM UTC
Files 76
Run time 4s
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

25 May 2026 07:38PM UTC coverage: 96.058% (-0.05%) from 96.111%
26416857181.1

push

github

web-flow
fix(client): bound leader-hint redirects with an absolute cross-pass cap (#441)

The per-pass MAX_LEADER_REDIRECTS cap resets every re-poll pass, and a
cap hit is treated as an in-progress leadership transfer that rides out
across further passes. Since leader-hint redirects are not charged
against max_attempts (issue #340), the only whole-call ceiling on
attacker-directed outbound dials was overall_deadline. A peer that
returns a fresh, reachable hint on every dial could therefore churn far
more than MAX_LEADER_REDIRECTS connections in one issue_rpc call,
bounded only by the (operator-chosen) deadline.

Add a deadline-independent backstop: a persistent total_redirects
counter, capped at MAX_TOTAL_LEADER_REDIRECTS (MAX_LEADER_REDIRECTS * 4
= 64). Unlike the per-pass cap, hitting the absolute cap is terminal -
it surfaces a FAILED_PRECONDITION and stops rather than riding out. The
counter charges only actionable hint pivots, so a genuinely-electing
cluster (which signals via NoLeaderYet and consumes no redirect budget)
still rides out for the full deadline, and a real failover settles far
below the cap.

Closes #440

11161 of 11619 relevant lines covered (96.06%)

459246.46 hits per line

Source Files on job 26416857181.1
  • Tree
  • List 76
  • Changed 2
  • Source Changed 2
  • Coverage Changed 2
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Build 26416857181
  • e7ff515e on github
  • Prev Job for on main (#26416850367.1)
  • Next Job for on main (#26417443842.1)
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