You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by "Aias00 (via GitHub)" <gi...@apache.org> on 2026/08/03 01:11:16 UTC

[I] [BUG] 5xx upstream responses never trigger failover retry (no error emitted) [shenyu]

Aias00 opened a new issue, #6734:
URL: https://github.com/apache/shenyu/issues/6734

   - severity: Medium
   - files: `shenyu-plugin/shenyu-plugin-httpclient/src/main/java/org/apache/shenyu/plugin/httpclient/WebClientPlugin.java:89`; `.../NettyHttpClientPlugin.java:89-120`; `.../DefaultRetryStrategy.java:105`
   - description: `WebClientPlugin` installs `.onRawStatus(httpStatus -> httpStatus >= 400, clientResponse -> Mono.empty())`, so 4xx/5xx produce a completed response with no exception. Failover (`RetryEnum.FAILOVER`) is driven by `onErrorResume`; a 502/503/504 from an unhealthy-but-connected upstream emits no error, so failover never invokes — the bad status is passed straight through.
   - impact: Operators relying on `retryStrategy=failover` get no failover for the most common unhealthy-upstream signal (5xx).
   - suggested_fix: Optionally map configurable status codes (502/503/504) to errors before the retry strategy.
   - confidence: Low-Medium
   - related_existing: none — #4280 is a specific HTTPS bug, not the 5xx-no-error gap.
   
   ---
   _Identified during the 2026-08-02 deep re-scan; full list in [`docs/scan2-2026-08-02/06-medium-tiers.md`](docs/scan2-2026-08-02/06-medium-tiers.md)._


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] 5xx upstream responses never trigger failover retry (no error emitted) [shenyu]

Posted by "Aias00 (via GitHub)" <gi...@apache.org>.
Aias00 closed issue #6734: [BUG] 5xx upstream responses never trigger failover retry (no error emitted)
URL: https://github.com/apache/shenyu/issues/6734


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


Re: [I] [BUG] 5xx upstream responses never trigger failover retry (no error emitted) [shenyu]

Posted by "github-actions[bot] (via GitHub)" <gi...@apache.org>.
github-actions[bot] commented on issue #6734:
URL: https://github.com/apache/shenyu/issues/6734#issuecomment-5161309776

   👋 Hello @Aias00
   
   A new issue has been opened by @Aias00:
   - **Title**: [BUG] 5xx upstream responses never trigger failover retry (no error emitted)
   - **Link**: https://github.com/apache/shenyu/issues/6734
   
   Please review when you have time. Thank you! 🙏


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: notifications-unsubscribe@shenyu.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org