You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I got this exception from some tests I was running:
java.lang.ArrayIndexOutOfBoundsException: 8192
at redis.clients.util.RedisOutputStream.write(RedisOutputStream.java:37)
at redis.clients.jedis.Protocol.sendCommand(Protocol.java:24)
at redis.clients.jedis.Connection.sendCommand(Connection.java:60)
at redis.clients.jedis.Jedis.get(Jedis.java:54)
Looking at the code, I'm thinking maybe the Jedis client isn't thread-safe, so there should be one instance per thread?
thanks for any feedback,
-Z
The text was updated successfully, but these errors were encountered:
Hi!
You are right, Jedis is not threadsafe. Please check in the Wiki, under "Using Jedis in a multithreaded environment" http://github.com/xetorthio/jedis/wiki
I got this exception from some tests I was running:
java.lang.ArrayIndexOutOfBoundsException: 8192
at redis.clients.util.RedisOutputStream.write(RedisOutputStream.java:37)
at redis.clients.jedis.Protocol.sendCommand(Protocol.java:24)
at redis.clients.jedis.Connection.sendCommand(Connection.java:60)
at redis.clients.jedis.Jedis.get(Jedis.java:54)
Looking at the code, I'm thinking maybe the Jedis client isn't thread-safe, so there should be one instance per thread?
thanks for any feedback,
-Z
The text was updated successfully, but these errors were encountered: