-
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 during transaction #85
Comments
the easiest way to solve this would be to disable MULTI and WATCH when in reconnect mode. |
On 05/09/2014 03:30 PM, Ivan Kruglov wrote:
Or actually set flags on the client if we've seen MULTI/WATCH without This is more work to do, but I think it is a better solution than "you --Steffen |
yup, i've already started implementing this logic :-) |
On Fri, 09 May 2014 06:54:41 -0700
This is what RedisDB does, from the moment MULTI is sent to server and |
Thanks for looking into this. If possible I'd like to do a third dev release with a fix to this next week. |
As a side note, I'm not too much convinced about the reconnect option usefulness. It makes some assumptions about the reconnection behavior, and doesn't provide any flexibility/configurability. Sometimes I'm tempted to dump the option altogether and dies with a proper exception and document the usage of Action::Retry or similar, to implement a real reconnect strategy. Any thought on that? |
Found a nasty issue in the library.
Imagine:
MULTI
SET key1 1
SET key2 2
EXEC
If:
then client will successfully set key2.
The text was updated successfully, but these errors were encountered: