Commit Graph

13 Commits

Author SHA1 Message Date
임정택
e9506298f8 fix bug in Protocol.processBulkReply()
* if RedisInputStream().read() at Protocol.processBulkReply() returns
-1, it runs with unexpected behavior
* fix: check and if return value is -1, it throws
JedisConnectionException with message "server has closed the connection"
** prevent unexpected behavior, specially ArrayIndexOutOfBoundException 
*** calls System.arraycopy() with length = -1 (cause limit = -1) at
RedisInputStream.read()

add pubsub unit test scenario : client-output-buffer-limit exceed

* Redis warns event(disconnect client) to their log, and suddenly
disconnected connection
** http://redis.io/topics/clients -> Output buffers limits
** so test expects JedisConnectionException with proper message
2013-10-16 18:22:04 +09:00
Jungtaek Lim
35a2dfd4c0 JedisSentinelPool now takes care of multi failover
* Now Pool.initPool() call closeInternalPool(), instead of destroy()
** calling destroy() in Pool.initPool() may have side effect, and JedisSentinelPool did
* modify unit test to test failover twice (needs +1 slave)
** modify configurations for additional slave
2013-09-26 10:48:17 +09:00
Jonathan Leibiusky
1aee3b396d ooppsss... forgot password for sentinel 2013-09-15 15:41:44 -03:00
Jonathan Leibiusky
6c8d23fadf rollback sentinel1 configuration, since I broke a test 2013-09-15 15:37:01 -03:00
Jonathan Leibiusky
ad58f816b6 make sure that JedisSentinelPool use timeout, password and db 2013-09-15 15:33:22 -03:00
Jonathan Leibiusky
dd3e5493a5 add target to release jedis in maven central 2013-09-06 15:52:59 -03:00
Jonathan Leibiusky
690ad3c898 trying to release jedis in maven central 2013-09-06 15:49:51 -03:00
Jonathan Leibiusky
ad001d1a72 change version to 2.2 2013-09-03 14:00:32 -03:00
Jonathan Leibiusky
e0fa095db9 update dependencies version
version bump
2013-09-03 11:59:08 -03:00
Jonathan Leibiusky
fddd41d796 change makefile to accept "start" and "stop" to be able to start the testing environment and stopping it for manual testing purposes.
raising down-after-milliseconds of sentinel 1 to avoid taking the master down and up all the time.
change sleep to 10 seconds after doing a "salveof" to avoid false negatives.
2013-09-02 18:13:14 -03:00
Hisham Mardam-Bey
39d81d8f1f Added a JUnit test for JedisSentinelPool.
This test will set up and get a master from a Redis master slave pair being
watched by 2 Sentinels. It pings the master, segfaults it, asks the pool for
another connection and makes sure it can ping it.

This commit also restores the pom.xml file's scm information back to
xetorthio and adds the default Sentinel port to the Procotol.
2013-08-28 23:10:50 -04:00
Jonathan Leibiusky
23e50a363e Change the way we test sentinel commands so it is automatic 2013-01-30 15:24:53 -03:00
Jonathan Leibiusky
ef08981ba3 add makefile to run tests easier 2012-04-14 10:44:40 -03:00