终于把redis问题解决了nested exception is
io.lettuce.core.RedisException: java.lang.IllegalStateException
{\"errorMsg\":\"org.springframework.data.redis.RedisSystemException: Redis exception; nested exception is
io.lettuce.core.RedisException: java.lang.IllegalStateException\"},
{\"Line\":74,\"Method\":\"convert\",\"File\":\"LettuceExceptionConverter.java\"},
{\"Line\":41,\"Method\":\"convert\",\"File\":\"LettuceExceptionConverter.java\"},
{\"Line\":44,\"Method\":\"translate\",\"File\":\"PassThroughExceptionTranslationStrategy.java\"},
{\"Line\":42,\"Method\":\"translate\",\"File\":\"FallbackExceptionTranslationStrategy.java\"},
{\"Line\":257,\"Method\":\"convertLettuceAccessException\",\"File\":\"LettuceConnection.java\"},
{\"Line\":718,\"Method\":\"convertLettuceAccessException\",\"File\":\"LettuceStringCommands.java\"},
{\"Line\":63,\"Method\":\"get\",\"File\":\"LettuceStringCommands.java\"}
从去年开始服务一直时不时报这个错,一报这个错,所以缓存就会取错,并且是在某个服务节点上,只能重启这个服务节点才能正常。
最近终于找到问题原因了,redis线程池耗尽,服务每天固定时间都有一个请求峰谷,这个时间段并发会在6000以上,导致redis线程耗尽,后面修改redis线程池增加线程数完美解决