8000 Reconnect when a redis command fails by jonasfj · Pull Request #236 · google/dart-neats · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Reconnect when a redis command fails #236

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

Merged
merged 1 commit into from
Apr 11, 2024
Merged

Conversation

jonasfj
Copy link
Member
@jonasfj jonasfj commented Apr 11, 2024

We have seen cases with:

RedisCommandException: OOM command not allowed under OOM prevention

Basically, we're getting an OOM error to a get/set command, this can happen if the system runs out of memory. Even if cache-eviction is enabled, memory can be fragmented too much, or other bad thing.

Conclusion was that commands like get/set can fail, even when redis is just used as a cache. There is no really good way to handle it. It might be safest to simply close the connection and try again later.

@jonasfj jonasfj requested a review from sigurdm April 11, 2024 10:57
@jonasfj jonasfj merged commit 716e3eb into google:master Apr 11, 2024
@jonasfj jonasfj deleted the bump-neat_cache branch April 11, 2024 12:45
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.

2 participants
0