Replies: 1 comment 4 replies
-
There's indeed a potential loophole that commands may not be wrapped into |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
preface
When I encountered this problem, I found that the issue or discussion of lettuce did not have this problem. So I opened a discussion to record it for the convenience of those who encounter the same problem in the future.
I don't know if lettuce can fix this problem on the 5.3.x version to facilitate users who currently use spring-boot 2.3.9RELEASE. After all, the latest spring-boot realse that adapts to spring-cloud is as follows:
https://github.com/spring-cloud/spring-cloud-release/wiki/Spring-Cloud-Hoxton-Release-Notes
the issue as follows:
spring-projects/spring-boot#25857
background
spring-boot 2.3.9 RELEASE
default lettuce 5.3.6 RELEASE
redis cluster mode
some bean use @PostConstruct and method contain redis action ,This is the key to reproducing the problem。
expression
log infinite print Unexpected exception during request: java.lang.NullPointerException,as follows:
print very quickly。
reasons
lettuce 5.3.6 RELEASE has a bug about use trace,the key code ,as follows:
when use full link tracking related modules, lettuce does not first determine whether it is empty, and this is the reason。
solutions
Either one will do
1)、pom add lettuce new version
lettuce fix it later,but in it new version,like 6.1.0.RELEASE,the code as follows:
https://github.com/lettuce-io/lettuce-core/blob/main/src/main/java/io/lettuce/core/protocol/CommandHandler.java#L460
2)、user code change
use @order or implement ApplicationRunner rather than use @PostConstruct
suggest
spring-boot 2.3.9 release may use new version of lettuce,at least not lettuce 5.3.6 RELEASE 。
lettuce infinite print log - Unexpected exception during request: java.lang.NullPointerException spring-projects/spring-boot#25857 (comment)
Obviously spring-boot needs to wait for lettuce to solve this problem.
2)lettuce fix 5.3.6 RELEASE this bug。
Beta Was this translation helpful? Give feedback.
All reactions