使用sentinel-sofa-rpc-adapter,在被调用方抛出InvocationTargetException时,如何使用自定义falback接收。
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
你好,我这边使用了SofaRpc,目前正在集成sentinel,目前使用了sentinel-sofa-rpc-adapter进行集成,调试发现程序执行到了SentinelSofaRpcProviderFilter,但是当被调用逻辑抛出异常时,被调用方接收到了异常信息,但是却没有异常的回调。
我的问题是,如何使用sentinel-sofa-rpc-adapter集成sentinel,并且能够在provider抛出InvocationTargetException时,进入到自定义的fallback函数中去。
环境:
windows10,sofastack,sentinel
@sczyh30 @cdfive
Contributor guide
Research direction
Start with the sentinel-sofa-rpc-adapter integration and the SentinelSofaRpcProviderFilter entry point, then trace handling of InvocationTargetException and custom fallback callbacks. Reproduce the provider-side exception in the stated SOFA Stack and Sentinel environment; done means the expected fallback behavior is understood and documented or the issue is confirmed as a bug.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java
- Domain
- backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100