question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Incompatible with LettuceClient 6.x - Unsupported operation 'hello'

See original GitHub issue

Hi,

We’re attempting to upgrade from v5.3.3.RELEASE of the lettuce redis client to v6.0.1.RELEASE.

When running unit tests with jedis-mock, we have the following exception:

    11:03:02.189 [lettuce-nioEventLoop-40-1] DEBUG io.lettuce.core.AbstractRedisClient - Connecting to Redis at localhost:50385, initialization: localhost:50385
    java.util.concurrent.CompletionException: io.lettuce.core.RedisCommandExecutionException: Unsupported operation 'hello'
        at java.util.concurrent.CompletableFuture.encodeThrowable(CompletableFuture.java:292)
        at java.util.concurrent.CompletableFuture.completeThrowable(CompletableFuture.java:308)
        at java.util.concurrent.CompletableFuture.uniCompose(CompletableFuture.java:943)
        at java.util.concurrent.CompletableFuture$UniCompose.tryFire(CompletableFuture.java:926)
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
        at io.lettuce.core.RedisHandshake.lambda$tryHandshakeResp3$1(RedisHandshake.java:105)
        at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:760)
        at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:736)
        at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:474)
        at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:1977)
        at io.lettuce.core.protocol.AsyncCommand.doCompleteExceptionally(AsyncCommand.java:139)
        at io.lettuce.core.protocol.AsyncCommand.completeResult(AsyncCommand.java:120)
        at io.lettuce.core.protocol.AsyncCommand.complete(AsyncCommand.java:111)
        at io.lettuce.core.protocol.CommandHandler.complete(CommandHandler.java:704)
        at io.lettuce.core.protocol.CommandHandler.decode(CommandHandler.java:639)
        at io.lettuce.core.protocol.CommandHandler.channelRead(CommandHandler.java:560)

Per readme, submitting an issue. Thanks!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:2
  • Comments:7

github_iconTop GitHub Comments

2reactions
inponomarevcommented, May 8, 2021

Hi, I implemented hello support in a way that it always returns RESP2 as a supported protocol. Thus it is now possible to use Lettuce 6.x without any additional configuration. The fix will be included in 0.1.19 release

0reactions
parmar049commented, Jul 13, 2021

Thanks @inponomarev It get resolved, looks like it was not updating to latest version 0.1.20, had to delete manually from .m2 folder and clean it again. its fixed now.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Lettuce Reference Guide
What's new in Lettuce 6.0 ... Clients can operate concurrently to each other by either being separate ... Hello Ben Hello Michael Completed....
Read more >
spring-projects/spring-data - Gitter
Hi, I am stuck with an issue with spring boot 2.2.0 and spring-data-mongo: I keep getting a ... doCommit(JpaTransactionManager.java:536) ~[spring-orm-5.1.6.
Read more >
Spring Boot Reference Guide
Try the How-to documents. They provide solutions to the most common questions. Learn the Spring basics. Spring Boot builds on many other Spring...
Read more >
Reference Documentation - The Inverno Framework
The following hello module is a simple Inverno module: ... It also exposes a Redis Client bean backed by a Lettuce client and...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found