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
We are frequently getting these Jedis connection exceptions, while we filtering with SearchStream
exception #1
redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:43) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.Protocol.process(Protocol.java:165) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.Protocol.read(Protocol.java:230) ~[jedis-3.8.0.jar!/:na]
exception #2
java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class [B (java.util.ArrayList and [B are in module java.base of loader 'bootstrap')
at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:270) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.BinaryJedis.set(BinaryJedis.java:426) ~[jedis-3.8.0.jar!/:na]
at org.springframework.data.redis.connection.jedis.JedisInvoker.lambda$from$20(JedisInvoker.java:299) ~[spring-data-redis-2.7.18.jar!/:2.7.18]
this is the JedisConnectionFactory that we are supplying for om framework.
@bean
public JedisConnectionFactory jedisConnectionFactory() {
RedisStandaloneConfiguration conf = new RedisStandaloneConfiguration(redisHost, redisPort);
final JedisPoolConfig poolConfig = new JedisPoolConfig();
poolConfig.setMinEvictableIdleTime(Duration.ofSeconds(60));
poolConfig.setTimeBetweenEvictionRuns(Duration.ofSeconds(30));
poolConfig.setNumTestsPerEvictionRun(-1);
poolConfig.setMaxTotal(-1);
poolConfig.setMaxIdle(100);
poolConfig.setMinIdle(1);
poolConfig.setBlockWhenExhausted(false);
final JedisClientConfiguration jedisClientConfiguration = JedisClientConfiguration.builder()
.connectTimeout(Duration.ofSeconds(30)).readTimeout(Duration.ofSeconds(30)).usePooling()
.poolConfig(poolConfig).build();
return new JedisConnectionFactory(conf, jedisClientConfiguration);
}
Redis / Jedis Configuration
Jedis version: 3.8.0
Redis version: 6.2.12
Java version: 11
The text was updated successfully, but these errors were encountered:
We are frequently getting these Jedis connection exceptions, while we filtering with SearchStream
exception #1
redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream.
at redis.clients.jedis.util.RedisInputStream.ensureFill(RedisInputStream.java:202) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.util.RedisInputStream.readByte(RedisInputStream.java:43) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.Protocol.process(Protocol.java:165) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.Protocol.read(Protocol.java:230) ~[jedis-3.8.0.jar!/:na]
exception #2
java.lang.ClassCastException: class java.util.ArrayList cannot be cast to class [B (java.util.ArrayList and [B are in module java.base of loader 'bootstrap')
at redis.clients.jedis.Connection.getStatusCodeReply(Connection.java:270) ~[jedis-3.8.0.jar!/:na]
at redis.clients.jedis.BinaryJedis.set(BinaryJedis.java:426) ~[jedis-3.8.0.jar!/:na]
at org.springframework.data.redis.connection.jedis.JedisInvoker.lambda$from$20(JedisInvoker.java:299) ~[spring-data-redis-2.7.18.jar!/:2.7.18]
this is the JedisConnectionFactory that we are supplying for om framework.
@bean
public JedisConnectionFactory jedisConnectionFactory() {
Redis / Jedis Configuration
Jedis version: 3.8.0
Redis version: 6.2.12
Java version: 11
The text was updated successfully, but these errors were encountered: