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

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

Comments

Projects
None yet
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

This comment has been minimized.

Show comment
Hide comment
@atrun

atrun 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 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

This comment has been minimized.

Show comment
Hide comment
@atrun

atrun 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 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

This comment has been minimized.

Show comment
Hide comment
@sreeix

sreeix May 28, 2012

Owner

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)

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