-
Notifications
You must be signed in to change notification settings - Fork 65
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
Reconnect does not work with large data sets #93
Comments
I'm using Resque to push jobs and Sentinel for HA and also seeing this same error at line 267 when a master is shut down (before the failover starts). I'm not submitting large data, rather I see it when I'm pushing a lot of small jobs very quickly. Adding a sleep 0.1 between push calls seems enough to make it stop. I suspect it's not the sleep that is making the difference but that I'm making frequent calls. When the error happens both my client and worker croak at about the same time. Should this really croak in this case or should __throw_reconnect() be called instead? redis-server 2.8.13 on OS X and Redis 1.975 |
UPD: workaround
because INFO is pretty slow. trick with EXISTS is not well documented, but seems Ok: |
Its a pity that Redis don't have a command that blocks until the server is ready… But I think having a official flag to "wait until is loaded" that you can use in the call to new() would make client code saner. Even if inside we do the last "on_connect" suggestion from @vsespb. At least, if a better way comes along, we already have the API in place. |
crashes with
Error while reading from Redis server: at /usr/local/share/perl/5.14.2/Redis.pm line 267.
or
[get] LOADING Redis is loading the dataset in memory, at /usr/local/share/perl/5.14.2/Redis.pm line 267.
does not work even if I uncomment on_conenect callback. possible intermittent issue.
related: shogo82148/Redis-Fast#19
The text was updated successfully, but these errors were encountered: