Skip to content

Client can't continue to set on the master shutdown #11

Open
atrun opened this Issue May 27, 2012 · 3 comments

2 participants

@atrun
atrun commented May 27, 2012

When the client to set into, the Master shutdown, slave is picked as Master in the redis-proxy.
client can not continue the cycle of operation.

for (int i=0;i<100000;i++){

jedis.hset("price",""+i,""+i*3);

}

@atrun
atrun commented May 27, 2012

During a switchover (savel is picked as the Master), whether it would provide the client commands to buffer? then continue execute after the switch to complete

@atrun
atrun commented May 28, 2012

Analysis for a night, finally solve the;
1.The timeout setting greater than 2 s
2.Client use

try ... catche ...

To catch the exception, to deal with

@atrun atrun closed this May 28, 2012
@sreeix
Owner
sreeix commented May 28, 2012

Thanks a lot for the analysis. I kinda know about the problem, I do have to fix it. The failed command should still be rerun(The only problem implementing this is i need some sort of setup that does not wildly go across all the slaves)

@sreeix sreeix reopened this May 28, 2012
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.