请教一个关于 IDEA debug 的问题

2021-01-05 21:41:11 +08:00
 rrzwxq
我调试的时候,如果我点击 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]
687 次点击
所在节点    问与答
0 条回复

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/742012

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX