-
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
wait_until_loaded option #98
base: master
Are you sure you want to change the base?
Conversation
Signed-off-by: Pedro Melo <[email protected]>
I'll test a bit later
not sure either
btw there is a great test in R:F https://github.com/shogo82148/Redis-Fast/pull/23/files#diff-1 |
also I am thinking maybe it should stop trying after some timeout.. (maybe use reconnect option as timeout?) |
when I restarted redis server (most of time, LOADING error was less frequent). Then I tested fix - yes it works.
https://github.com/antirez/redis/blob/38a5db6c9ac21812e4942d7016e4e58429f9ab09/src/redis.c#L2236
So: OK? note that I have filing that names
|
coming back to this issue, it seems that
would invalidate the documentation about reconnect:
It seems that in most of the case (so not in wait_until_loaded), we want it to croak and not retry. So the code should realize that it's in specific case of wait_until_loaded |
e5ccb43
to
0dfcf02
Compare
An attempt at solving #93.
Not a perfect solution by large, and on top of that I don't have a large enough dataset on my laptop to test this.
Also, not sure about the placement of the "fix", the auth() command is used before-hand, not sure if that command works while LOADING.
Anyway, if someone has large datasets, see if this works for you.