spring-projects / spring-session

Spring Session
https://spring.io/projects/spring-session
Apache License 2.0
1.86k stars 1.11k forks source link

about use twemproxy, initialization error #572

Open kkrgwbj opened 8 years ago

kkrgwbj commented 8 years ago

Caused by: org.springframework.data.redis.RedisConnectionFailureException: Unexpected end of stream.; nested exception is redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream. at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:67) at org.springframework.data.redis.connection.jedis.JedisExceptionConverter.convert(JedisExceptionConverter.java:41) at org.springframework.data.redis.PassThroughExceptionTranslationStrategy.translate(PassThroughExceptionTranslationStrategy.java:37) at org.springframework.data.redis.FallbackExceptionTranslationStrategy.translate(FallbackExceptionTranslationStrategy.java:37) at org.springframework.data.redis.connection.jedis.JedisConnection.convertJedisAccessException(JedisConnection.java:212) at org.springframework.data.redis.connection.jedis.JedisConnection.getConfig(JedisConnection.java:573) at org.springframework.session.data.redis.config.ConfigureNotifyKeyspaceEventsAction.getNotifyOptions(ConfigureNotifyKeyspaceEventsAction.java:74) at org.springframework.session.data.redis.config.ConfigureNotifyKeyspaceEventsAction.configure(ConfigureNotifyKeyspaceEventsAction.java:55) at org.springframework.session.data.redis.config.annotation.web.http.RedisHttpSessionConfiguration$EnableRedisKeyspaceNotificationsInitializer.afterPropertiesSet(RedisHttpSessionConfiguration.java:224) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1637) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1574) ... 38 more Caused by: redis.clients.jedis.exceptions.JedisConnectionException: Unexpected end of stream. at redis.clients.util.RedisInputStream.ensureFill(RedisInputStream.java:198) at redis.clients.util.RedisInputStream.readByte(RedisInputStream.java:40) at redis.clients.jedis.Protocol.process(Protocol.java:141) at redis.clients.jedis.Protocol.read(Protocol.java:205) at redis.clients.jedis.Connection.readProtocolWithCheckingBroken(Connection.java:297) at redis.clients.jedis.Connection.getBinaryMultiBulkReply(Connection.java:233) at redis.clients.jedis.Connection.getMultiBulkReply(Connection.java:226) at redis.clients.jedis.Jedis.configGet(Jedis.java:2578) at org.springframework.data.redis.connection.jedis.JedisConnection.getConfig(JedisConnection.java:571) ... 43 more

liuanxin commented 8 years ago

Just like you

m11y commented 7 years ago

encounter the same problem.

roaporl commented 7 years ago

me too

bigbigwood commented 7 years ago

same problem. anyone has solution?

rwinch commented 7 years ago

@christophstrobl Any ideas on this one?

bigbigwood commented 7 years ago

@rwinch thanks for the response..

Currently we're trying to use spring-session and redis by using twemproxy to manage the redis cluster, but we found that twemproxy is not able to support 'PUBLISH' and 'PSUBSCRIBE' commands, and spring-session-redis solution is sending/listening events to redis...

My question is: if there is a way to disable those events in spring-session-redis solution?