lettuce infinite print log - Unexpected exception during request: java.lang.NullPointerException #25857
Labels
for: external-project
For an external project and not something we can fix
status: invalid
An issue that we don't feel is valid
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 。
The text was updated successfully, but these errors were encountered: