New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Unknown reply: p #1936
Comments
Can you please recheck it with the latest versions of Redis? 2.10.2 or 3.0.1? |
have you used the same version or just suggesting ,i have to make changes in production ,i hope you understand my concern ! have you checked the code i provided above is it fine ? |
This is probably a threading issue. I will close this. If you still think it is a bug please reopen it with a reduced piece of code that reproduces this error. [1] #203 (comment) |
Ran into a similar issue. Jedis-3.0.0, Redis 5.0.5 redis.clients.jedis.exceptions.JedisConnectionException: Unknown reply: ↑ at redis.clients.jedis.Protocol.process(Protocol.java:168) at redis.clients.jedis.Protocol.read(Protocol.java:219) at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:309) at redis.clients.jedis.Connection.getMany(Connection.java:321) at redis.clients.jedis.Pipeline.sync(Pipeline.java:98) at redis.clients.jedis.Pipeline.clear(Pipeline.java:84) at redis.clients.jedis.Pipeline.close(Pipeline.java:157) Code in question: try { pipe = jedis.pipelined(); Response dumpResp = pipe.dump(key); Response pttlResp = pipe.pttl(key); pipe.sync(); .... ... } finally { if (pipe != null) { pipe.close(); <<<<<< } } Single threaded application that does this operation is a loop. Unable to reproduce as the Redis endpoint is no longer available. Even if this is due to network issues - is there a way to gracefully handle these errors in close()? |
Same problem. Jedis version: 3.3.0, redis server: 6.0.4 |
@liz367 You're calling jedis.sync() but you should be calling pipeline.sync() |
thanks for your help, i'll have a try. |
So like above service i have multiple services which is interact with redis frequently but after running for few days i end up with above exception so in order resolve the issue ,i have to flush the redis cache and restart the jar which cost lost of data. Configuration:java 8, RedisTemplate with Spring Boot and Jedis 2.9.0
I am really going through hard time to resolve above issue.
The text was updated successfully, but these errors were encountered: