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

Don't mark redis readonly errors #489

Merged
merged 1 commit into from
May 2, 2023
Merged

Conversation

shanth96
Copy link
Contributor

@shanth96 shanth96 commented Apr 28, 2023

Currently, Semians are triggered when a Redis is failed over. As the current primary gets switched over, it could take some time before clients realize the new redis primary. Until then, clients receive READONLY errors as they try to write against a ReadOnly replica.

We shouldn't track these types of errors for semians since this is a fast failure and we'd want the clients to reconnect to the new primary ASAP.

This PR sets marks_semian_circuits? to false for the ReadOnly errors from the two Redis clients.

@shanth96 shanth96 force-pushed the ignore-readonly-errors branch 16 times, most recently from 308eeaa to b594d43 Compare April 28, 2023 19:37
@miry miry mentioned this pull request May 2, 2023
3 tasks
@miry
Copy link
Contributor

miry commented May 2, 2023

@shanth96 Pls update Changelog as well.

I am going to include this change in v1.19.0 version.

@shanth96 shanth96 force-pushed the ignore-readonly-errors branch 4 times, most recently from 59c0252 to 202957e Compare May 2, 2023 15:55
@shanth96 shanth96 merged commit e5fbef7 into master May 2, 2023
43 checks passed
@shanth96 shanth96 deleted the ignore-readonly-errors branch May 2, 2023 16:33
@shanth96 shanth96 mentioned this pull request May 2, 2023
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.

None yet

5 participants