alibaba/Sentinel

sentinel springwebmvc不支持异步async请求

Open

#2447 opened on Nov 12, 2021

View on GitHub
 (1 comment) (0 reactions) (0 assignees)Java (23,109 stars) (8,150 forks)batch import
area/integrationsgood first issuekind/bug

Description

我们在Controller使用了WebAsyncTask的异步返回方式,这种情况下,AbstractSentinelInterceptor中的prehandle会执行两次,rckey变成了2,但是afterCompletion只会执行一次(而且还是在另外一个线程请求的),导致clean的逻辑无法执行,这样entry和context在threadlocal中一直无法清除,最终oom

Contributor guide