alphazero / jredis

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

Bug? Expecting status code for size/count #26

Closed pardon-the-pun closed 13 years ago

pardon-the-pun commented 13 years ago

When running this code:

@Test
public void keys() throws Exception {
    final JRedisService jredis = new JRedisService(DefaultConnectionSpec.newSpec(url, port, 10, credentials), 1);
    jredis.keys("foobar:*");
}

I get the following output:

-- JREDIS -- BUG: serviceRequest() -- ProviderException: Bug?  Expecting status code for size/count
-- JREDIS -- INFO: serviceRequest() -- closing connection ... 
org.jredis.ProviderException: Bug?  Expecting status code for size/count
at org.jredis.ri.alphazero.protocol.SynchProtocol$SynchMultiLineResponseBase.readControlLine(SynchProtocol.java:410)
at org.jredis.ri.alphazero.protocol.SynchProtocol$SynchBulkResponse.read(SynchProtocol.java:488)
at org.jredis.ri.alphazero.connection.SynchConnection.serviceRequest(SynchConnection.java:138)
at org.jredis.ri.alphazero.JRedisService.serviceRequest(JRedisService.java:179)
at org.jredis.ri.alphazero.JRedisSupport.keys(JRedisSupport.java:1022)

Using redis-cli to try the same, works just fine.

Redis server is 1.2.6

pardon-the-pun commented 13 years ago

My mistake. This actually only happens against Redis server 1.3.15. Nevermind.