Skip to content
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

Improve query handling #39

Open
wants to merge 7 commits into
base: master
Choose a base branch
from
Open

Conversation

xkulale
Copy link

@xkulale xkulale commented Dec 16, 2019

These changes have been implemented in the scope of Redis DB solution integration to the cloud infrastructure for a products of one of the world leading providers of Information and Communication Technologies.

Description:
a. Retry the query that is sent to all connected pools (Redis instances);
b. Add refresh slots map and retry query logic for such Redis error
responses as <<"ASK ", _/binary>>, <<"TRYAGAIN ", _/binary>> and
<<"CLUSTERDOWN ", _/binary>>;
c. Return an error to application in case of Redis response errors
like as: "ERR unknown command 'foobar'” or "WRONGTYPE Operation
against a key holding the wrong kind of value", "BUSY Redis is
busy running a script", "NOAUTH Authentication required." and so on ;
d. Add refresh slots map and retry query logic in case of POSIX
error that can related to temporary TCP issues.

xkulale added 7 commits December 11, 2019 12:37
a.	Retry the query that is sent to all connected pools (Redis instances);
b.	Add `refresh slots map and retry query` logic for such Redis error
        responses as <<"ASK ", _/binary>>,  <<"TRYAGAIN ", _/binary>> and
        <<"CLUSTERDOWN ", _/binary>>;
c.	Return an error to application in case of Redis response errors
        like as: "ERR unknown command 'foobar'” or "WRONGTYPE Operation
        against a key holding the wrong kind of value", "BUSY Redis is
        busy running a script", "NOAUTH Authentication required." and so on ;
d.	Add `refresh slots map and retry query ` logic in case of POSIX
        error that can related to temporary TCP issues.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant