You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
During getting elements from cache, annotated by @Cacheable on FeignClient, cache get error handler execute twice.
It looks like it is caused by change #608. The flow seems to be as follows:
In my project, I just set spring.cloud.openfeign.cache.enabled=false (feign.cache.enabled=false in spring-cloud-openfeign-core-3.1.0.jar) to disable twice cache operations. The org.springframework.cache.interceptor.CacheInterceptor (created at org.springframework.cache.annotation.ProxyCachingConfiguration#cacheInterceptor) already supports the @Cacheable annotation on methods within classes annotated with @FeignClient.
Describe the bug
During getting elements from cache, annotated by
@Cacheable
onFeignClient
, cache get error handler execute twice.It looks like it is caused by change #608. The flow seems to be as follows:
Affected spring cloud version:
2021.0.0
Sample
Sample application that reproduces the problem: https://github.com/fureq/spring-feign-bug. Details are described in readme.
The text was updated successfully, but these errors were encountered: