-
Notifications
You must be signed in to change notification settings - Fork 40
fix: Handle redis errors during mutations. #165
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
fix: Handle redis errors during mutations. #165
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
More lenient supervision strategy.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This one isn't directly part of the initial issue as it applies to the update processor.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Only pre-create buckets when not in daemon mode.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Handle errors from eredis calls. This just logs and doesn't crash the process.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The supervision strategy being updated that is relevant to the original issue.
|
bugbot review |
🤖 I have created a release *beep* *boop* --- ## [3.8.1](v3.8.0...v3.8.1) (2025-11-12) ### Bug Fixes * Handle connection errors during read operations. ([#163](#163)) ([5838c2b](5838c2b)) * Handle redis errors during mutations. ([#165](#165)) ([9dbe853](9dbe853)) * Prevent uninitialized SDK warning in daemon mode. ([#162](#162)) ([0961922](0961922)) * Redact SDK in gen_server descriptions and network errors. ([#166](#166)) ([3a4e005](3a4e005)) --- This PR was generated with [Release Please](https://github.com/googleapis/release-please). See [documentation](https://github.com/googleapis/release-please#release-please). Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
Next PR for #161
When redis wasn't available during application start it would cause the redis process to crash even in daemon mode.
There are a few factors that contributed to this:
This PR makes adjustments to each of these behaviors.
There is some additional logic for ETS which will trigger a reconnection if there was an attempt at a store update during a store outage. We may want to consider something like this for redis as well. It will not affect daemon mode.