alphazero / jredis

Java Client and Connectors for Redis
http://code.google.com/p/jredis/
Apache License 2.0
316 stars 136 forks source link

Connection re-established but last request not processed #43

Open yheart opened 13 years ago

yheart commented 13 years ago

When I updated the jredis , I got the error when JRedisService reconnected .

The Exception info is as follow:

ERROR - -1 read count in readLine() while reading response line. ERROR - PROBLEM: serviceRequest() -- ClientRuntimeException => Unexpected EOF (read -1) in readLine. Command: ZCARD org.jredis.connector.ConnectionReset: Connection re-established but last request not processed: Unexpected EOF (read -1) in readLine. Command: ZCARD at org.jredis.ri.alphazero.connection.SynchConnection.serviceRequest(SynchConnection.java:154) at org.jredis.ri.alphazero.JRedisService.serviceRequest(JRedisService.java:180) at org.jredis.ri.alphazero.JRedisSupport.zcard(JRedisSupport.java:872)

alphazero commented 13 years ago

Version mismatch, most likely. 1.0 RC2 is for Redis 1.2.n. master branch in git is for the 2.0.

Always take a look at the revision info file in the root of the source distro. It notes which precise version of redis it was tested against. It is very possible that 2.n version is lagging behind Redis as I've been very busy past couple of months with work.