-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
java.lang.ArrayIndexOutOfBoundsException #552
Comments
@luyee Hello! And please check Jedis instance does not support multi-threaded environment. Also check if you use Jedis*Pool, when Jedis command throws JedisConnectionException, you should do nothing about command and call returnBrokenResource(). Thanks! |
@HeartSaVioR the same case reproduce in jedis 2.1.0
and the redisClient .getPipeline () use JedisPool
|
@luyee Hello! At first, your implementation is dangerous. You should change your implementation to get Jedis instance, get Pipeline, use, sync, return Jedis instance in a row. |
@HeartSaVioR Thx !!! |
@luyee Can we close this issue? :) |
OK! |
when use the jedis version and Jedispool:
I get this error
java.lang.ArrayIndexOutOfBoundsException: 8211
at redis.clients.util.RedisOutputStream.write(RedisOutputStream.java:35)
at redis.clients.jedis.Protocol.sendCommand(Protocol.java:39)
at redis.clients.jedis.Protocol.sendCommand(Protocol.java:33)
at redis.clients.jedis.Connection.sendCommand(Connection.java:80)
at redis.clients.jedis.BinaryClient.set(BinaryClient.java:86)
at redis.clients.jedis.Client.set(Client.java:21)
at redis.clients.jedis.Pipeline.set(Pipeline.java:631)
The text was updated successfully, but these errors were encountered: