Skip to content
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

Pipelined HMSET throws ClassCastException #42

Closed
graemerocher opened this issue Nov 10, 2010 · 2 comments
Closed

Pipelined HMSET throws ClassCastException #42

graemerocher opened this issue Nov 10, 2010 · 2 comments

Comments

@graemerocher
Copy link
Contributor

I'm attempting to a do a series HMSET in a pipeline for batch inserts and getting this exception

java.lang.ClassCastException: java.lang.Integer cannot be cast to java.lang.String
at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:121)
at redis.clients.jedis.Jedis.hmset(Jedis.java:728)

The commands I'm executing are as follows:

+1289381390.666655 "HMSET" "grails.gorm.tests.Person:1" "lastName" "Builder" "firstName" "Bob"
+1289381390.670692 "SADD" "grails.gorm.tests.Person.all" "1"
+1289381391.967739 "HMSET" "grails.gorm.tests.Person:2" "lastName" "Flintstone" "firstName" "Fred"

This issue is preventing me from supporting batch writes (using a pipeline) in GORM for Redis

@graemerocher
Copy link
Contributor Author

Nevermind, the issue was in our template code, sorry for the hassle

@xetorthio
Copy link
Contributor

No problem! Good to know it is not a bug! and good to know GORM for Redis is adding pipelining for batch operations!

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants