alibaba / alibaba/Sentinel

限流后fallbackFactory类无法进入

Open
#1,877 0 comments 0 reactions 0 assignees View on GitHub
integration/spring-cloud kind/question
Dominant language
Java
Stars
23.1k
Forks
8.1k
PR merge metrics
No merged PRs in 30d

Description

`用sentinel能够正常限流,但是fallbackFactory指定类却无法进入。全局拦截限流异常能够正常拦截到`。具体接口如下:
![QQ图片20201130235039](https://user-images.githubusercontent.com/25104771/100632075-5bd0f100-3367-11eb-8fdc-d9d0455605d3.png)
![QQ图片20201130235125](https://user-images.githubusercontent.com/25104771/100632083-5e334b00-3367-11eb-99fe-07b4b561919e.png)
![QQ图片20201130235145](https://user-images.githubusercontent.com/25104771/100632087-5ecbe180-3367-11eb-9497-b8436b0ced53.png)
下面的全局能够拦截到异常。
![QQ图片20201130235336](https://user-images.githubusercontent.com/25104771/100751028-d0686600-3421-11eb-8012-5dcb700b28f2.png)

这sh是为什么呢?哪里没配好吗?跟踪代码,发现注入feign的对象也没问题。谢谢!
下面的invoke方法没有执行

![QQ图片20201201231554](https://user-images.githubusercontent.com/25104771/100759684-debb7f80-342b-11eb-84a7-8623de57d9f9.png)

Contributor guide

Open the contributing guide

Research direction

Start by reproducing the Sentinel rate-limiting case described in the issue and tracing the Feign fallbackFactory path to the referenced invoke method. Compare it with the global interceptor path, which does receive the exception; done means the cause of the missing fallback invocation is identified and confirmed with a reproducible test or configuration.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
api, backend
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.