-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
Timed out attempting to find data in the correct node #1385
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
Comments
@jianqiangsong could you add more details about issue? |
We use cluster mode, but the client links redis, and the following reports are wrong. |
I'm not sure I understand the problem :( |
[2018-08-08 14:36:26 *176089.7] ERROR zm_deactivate_swoole (ERROR 503): Fatal error: Uncaught RedisClusterException: Timed out attempting to find data in the correct node! in /var/www/pt_target/Newtrade/SwooleCommand/Controller/SwooleServerController.class.php:221 |
@jianqiangsong #888 (comment) |
Is there another solution? |
@jianqiangsong could you show how does the key look like? |
we also have this question env:
error info:
and it's random happen,Each lasting one second |
This isn't necessarily a bug. Have you tried monitoring your Redis servers to see if you're having latency spikes? |
Same problem here... the redis cluster has entered recovery mode and when it returned the error message began to appear on NewRelic. However, another apps be connect and retrieves messages from the same redis-cluster, be one app is nodejs, and the other one is php7, without any error message. The app that catch the exception is php5.4 We are running the apps (php, node) and redis cluster in docker (inside k8s)... |
We also have this issue on PHP 5.5, but in cluster_library.c is there any reason, that waitms calculated from connect timeout, rather than read timeout? (used in function cluster_send_command) Another possible reason is that msstart does not reseted in every loop, as written in the documentation: "The way RedisCluster handles user specified timeout values is that every time a command is sent to the cluster, we record the time at the start of the request and then again every time we have to re-issue the command to a different node (either because Redis cluster responded with MOVED/ASK or because we failed to communicate with a given node). Once we detect having been in the command loop for longer than our specified timeout, an error is raised." |
I have the same error on PHP 7.1,and PHP-FPM exited on signal 11 (SIGSEGV) PHP Redis Version => 4.3.0 |
@sofire it is recommended to use phpredis 5 with PHP 7 |
Any solution for this, i am also getting the same issue |
🔼 UP |
Have the same issue |
We are also seeing this in one of our testing environments but don't really know where to look for more information on how to fix this. We haven't even really be able to track this to redis itself but very likely seems a somekind of problem with the redis instance at least (network, hdd, redis, menory). While the problem is on, still around half of the incoming request are served normally. EDIT: The only hint that we are seeing is that the "broken" redis-instance gets its memory degradted over time, we have been seeing this output:
and
|
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
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
Expected behaviour
Actual behaviour
I'm seeing this behaviour on
Steps to reproduce, backtrace or example script
we use rediscluster ;
so many problem : timed out attempting to find data in the correct node!
I've checked
develop
branchThe text was updated successfully, but these errors were encountered: