Skip to content

[BUG] FixedRetryStrategy retries on ALL errors with no filter and no idempotency guard #6575

Closed

Description

@Aias00

Description

Retry.fixedDelay(retryTimes, Duration.ofSeconds(2)) has no .filter(...). Reactor's Retry.fixedDelay retries on every Throwable by default: 4xx permanent failures, 5xx, any IOException/NPE, and POST/PUT/DELETE (non-idempotent). With retryTimes=3 and an upstream returning 500 for a POST, the gateway sends 3 more POSTs to a failing server.

Location

shenyu-plugin-httpclient/.../FixedRetryStrategy.java:57-59

Impact

Retry storm amplifying load by (N+1)x during an upstream outage, with 2s delays occupying connections. 1000 concurrent requests to a failing upstream = 4000 requests/s.

Suggested fix

Add a .filter() limiting retries to transient/network exceptions (ConnectTimeoutException, ReadTimeoutException, TimeoutException); add an idempotency guard skipping non-GET methods unless explicitly configured.

Related existing issue(s)

#6413 is retry sending an empty body (functional); this is retry-on-everything amplification (perf/scalability). #6464 (non-default retry backoff strategies can't be selected) is a selection bug; this is the Fixed strategy's missing filter.

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 @yuluo-yx

    A new issue has been opened by @Aias00:

    Please review when you have time. Thank you! 🙏

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

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions