这是一个创建于 1420 天前的主题,其中的信息可能已经有所发展或是发生改变。
我调试的时候,如果我点击 Step Over 跳过一个执行数据库查询的代码,就会报错
io.lettuce.core.RedisCommandTimeoutException: Command timed out,
我看了这个行代码里面的确有一个 mybatis 拦截器执行了 redis 的操作代码,才会有上面这个错误,但是同样的代码调试,如果我点击的是 Resume Program 跳到下一个断点或者执行完,又或者不调试正常执行,都不会报错这个异常,
下面是具体的异常栈信息,因为篇幅原因没有把全部异常贴出来。
请问这里面可能的原因可能是什么,或者各位有没有什么思路?
org.springframework.dao.QueryTimeoutException: Redis command timed out; nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:70) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert(LettuceExceptionConverter.java:41) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:44) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:42) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException(LettuceConnection.java:257) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.lettuce.LettuceHashCommands.convertLettuceAccessException(LettuceHashCommands.java:445) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.lettuce.LettuceHashCommands.hGetAll(LettuceHashCommands.java:195) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.DefaultedRedisConnection.hGetAll(DefaultedRedisConnection.java:862) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.connection.DefaultStringRedisConnection.hGetAll(DefaultStringRedisConnection.java:438) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.core.DefaultHashOperations.lambda$entries$12(DefaultHashOperations.java:231) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:224) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.core.RedisTemplate.execute(RedisTemplate.java:184) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.core.AbstractOperations.execute(AbstractOperations.java:95) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.springframework.data.redis.core.DefaultHashOperations.entries(DefaultHashOperations.java:231) ~[spring-data-redis-2.0.11.RELEASE.jar:2.0.11.RELEASE]
at org.xxxx.core.redis.DynamicRedisHelper.hshGetAll(DynamicRedisHelper.java:878) ~[xxxx-starter-redis-1.3.0.RELEASE.jar:1.3.0.RELEASE]
at org.xxxx.boot.platform.data.permission.repository.DefaultPermissionSqlRepository.getPermissionRange(DefaultPermissionSqlRepository.java:65) ~[xxxx-boot-platform-1.3.0.RELEASE.jar:1.3.0.RELEASE]