V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
V2EX 提问指南
rrzwxq
V2EX  ›  问与答

请教一个关于 IDEA debug 的问题

  •  
  •   rrzwxq · 2021-01-05 21:41:11 +08:00 · 692 次点击
    这是一个创建于 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]
    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   1064 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 22ms · UTC 19:59 · PVG 03:59 · LAX 11:59 · JFK 14:59
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.