引入SentinelGatewayFilter Bean后,出现reactor.ipc.netty.channel.AbortedException: Connection has been closed异常
- Dominant language
- Java
- Stars
- 23.1k
- Forks
- 8.1k
- PR merge metrics
- No merged PRs in 30d
Description
在压测环境下,SpringCloudGateway项目当引入SentinelGatewayFilter后,后端日志发现不定时会出现reactor.ipc.netty.channel.AbortedException: Connection has been closed异常,查看堆栈日志显示是在执行DefaultChannelPipeline.fireChannelUnregistered时抛出的异常,似乎是在注销相关channle的时候异常了;目前只会在压测环境出现,正常测试环境正常;当去掉SentinelGatewayFilter后,观察异常消息;
异常日志如下:

sentinel版本:1.6.3
spring-cloud版本:Finchley.SR2
Contributor guide
Research direction
Start with the SentinelGatewayFilter integration and the stack trace location at DefaultChannelPipeline.fireChannelUnregistered, using the reported Sentinel 1.6.3 and Spring Cloud Finchley.SR2 versions. Reproduce under load with and without the filter, then document the cause of the Connection has been closed exception and verify that the abnormal error no longer occurs.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, spring, spring-boot
- Domain
- api, backend
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100