Skip to content

[BUG] No circuit breaker in the proxy/retry path by default — no fast-fail when all upstreams are down #6584

Closed

Description

@Aias00

Description

The retry logic operates below the plugin chain with no awareness of circuit-breaker state. The Resilience4J circuit breaker is not enabled by default. The failover retry checks UpstreamCacheManager for healthy upstreams, but that lags real-time failures. When all upstreams in a selector go down, every incoming request fires retryTimes retries (each timing out) before failing — no fast-fail path.

Location

shenyu-plugin-divide/.../DividePlugin.java:94-141 (no CB wrapping)
shenyu-plugin-resilience4j/.../Resilience4JPlugin.java:80-90 (optional, must be explicitly configured per-route)

Impact

With retryTimes=3 and 1000 RPS, that's 4000 outbound requests/s to dead upstreams for the outage duration plus 3000 held connections.

Suggested fix

Make a lightweight circuit breaker (open-on-N-consecutive-failures, half-open-probe) the default in the Divide/HTTP retry path, not an opt-in plugin.

Related existing issue(s)

None

Identified during the 2026-08-02 audit; full list in docs/issue-candidates-2026-08-02.md.

Activity

  1. github-actions commented on Aug 2, 2026

    @github-actions
    Contributor

    👋 Hello @Aias00

    A new issue has been opened by @Aias00:

    Please review when you have time. Thank you! 🙏

  2. wy471x commented on Oct 4, 2026

    @wy471x
    Contributor

    /assign

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions