Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What if spring-boot Integration redis uses lettuce client timeout exception

2025-04-06 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

This article mainly introduces the "spring-boot integration redis using lettuce client timeout exception how to do", in the daily operation, I believe that many people in the spring-boot integration redis using lettuce client timeout exception how to do have doubts, Xiaobian consulted all kinds of information, sorted out a simple and useful method of operation, hope to answer the "spring-boot integration redis using lettuce client timeout exception how to do" the doubt is helpful! Next, please follow the editor to study!

Error message 2020-08-19 19 o.s.s.s.TaskUtils$LoggingErrorHandler 0615 ERROR 9716-[pool-2-thread-1] o.s.s.s.TaskUtils$LoggingErrorHandler: Unexpected error occurred in scheduled taskorg.springframework.dao.QueryTimeoutException: Redis command timed out Nested exception is io.lettuce.core.RedisCommandTimeoutException: Command timed out after 10 second (s) at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert (LettuceExceptionConverter.java:70) at org.springframework.data.redis.connection.lettuce.LettuceExceptionConverter.convert (LettuceExceptionConverter.java:41) at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate (PassThroughExceptionTranslationStrategy.java:44) at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate (FallbackExceptionTranslationStrategy.java:42) At org.springframework.data.redis.connection.lettuce.LettuceConnection.convertLettuceAccessException (LettuceConnection.java:270) at org.springframework.data.redis.connection.lettuce.LettuceSetCommands.convertLettuceAccessException (LettuceSetCommands.java:520) at org.springframework.data.redis.connection.lettuce.LettuceSetCommands.sMembers (LettuceSetCommands.java:245) at org.springframework.data.redis.connection.DefaultedRedisConnection.sMembers (DefaultedRedisConnection.java:729) at org.springframework.data.redis.core DefaultSetOperations.lambda $members$10 (DefaultSetOperations.java:214) at org.springframework.data.redis.core.RedisTemplate.execute (RedisTemplate.java:228) at org.springframework.data.redis.core.RedisTemplate.execute (RedisTemplate.java:188) at org.springframework.data.redis.core.AbstractOperations.execute (AbstractOperations.java:96) at org.springframework.data.redis.core.DefaultSetOperations.members (DefaultSetOperations.java:214) at org.springframework. Data.redis.core.DefaultBoundSetOperations.members (DefaultBoundSetOperations.java:152) at org.springframework.session.data.redis.RedisSessionExpirationPolicy.cleanExpiredSessions (RedisSessionExpirationPolicy.java:129) at org.springframework.session.data.redis.RedisIndexedSessionRepository.cleanupExpiredSessions (RedisIndexedSessionRepository.java:407) at org.springframework.scheduling.support.DelegatingErrorHandlingRunnable.run (DelegatingErrorHandlingRunnable.java:54) at org.springframework.scheduling.concurrent.ReschedulingRunnable.run (ReschedulingRunnable.java:93) at java.util .concurrent.executors $RunnableAdapter.call (Executors.java:511) at java.util.concurrent.FutureTask.run (FutureTask.java:266) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201 (ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run (ScheduledThreadPoolExecutor.java:293) at java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:624) At java.lang.Thread.run (Thread.java:748) Caused by: io.lettuce.core.RedisCommandTimeoutException: Command timed out after 10 second (s) at io.lettuce.core.ExceptionFactory.createTimeoutException (ExceptionFactory.java:51) at io.lettuce.core.LettuceFutures.awaitOrCancel (LettuceFutures.java:114) at io.lettuce.core.FutureSyncInvocationHandler.handleInvocation (FutureSyncInvocationHandler.java:69) at io.lettuce.core.internal.AbstractInvocationHandler.invoke (AbstractInvocationHandler.java : 80) at com.sun.proxy.$Proxy115.smembers (Unknown Source) at org.springframework.data.redis.connection.lettuce.LettuceSetCommands.sMembers (LettuceSetCommands.java:243)... 18 common frames omitted solution

1) replace the default Lettuce client and use the jedis client

Redis.clients jedis org.springframework.data spring-data-redis at this point, on the "spring-boot integration redis using lettuce client timeout exception how to do" the study is over, I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report