New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[BUG] eval command with RedisCluster::FAILOVER_DISTRIBUTE_SLAVES option will throw exception #1142
Comments
I guess the problem is |
I just encountered this too on a simple |
I'll take a look. I think we'll need to preclude distributing to replicas unless the command being invoked is |
When a node timeout occurs, then phpredis will try to connect to another node, whose answer probably will be MOVED redirect. After this we need more time to accomplish the redirection, otherwise we get "Timed out attempting to find data in the correct node" error message. Fixes phpredis#795 phpredis#888 phpredis#1142 phpredis#1385 phpredis#1633 phpredis#1707 phpredis#1811 phpredis#2407
When a node timeout occurs, then phpredis will try to connect to another node, whose answer probably will be MOVED redirect. After this we need more time to accomplish the redirection, otherwise we get "Timed out attempting to find data in the correct node" error message. Fixes #795 #888 #1142 #1385 #1633 #1707 #1811 #2407
Info:
phpredis: lastest develop branch
redis-server: 3.2.1 and 3.0.7
system: ubuntu-14.04 64bit
If I use
RedisCluster::FAILOVER_DISTRIBUTE
option, that all is fine. But if I useRedisCluster::FAILOVER_DISTRIBUTE_SLAVES
option, it will throw exception:Here is the example code, you can test it.
The text was updated successfully, but these errors were encountered: