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

Handle SERVER_ERROR from Memcached #1024

Merged

Conversation

grcooper
Copy link
Collaborator

As per the Memcached spec, SERVER_ERROR is a valid value to return, alongside the error message. This only seems to be valid for the Meta/Text protocols.

I have added support so things like Envoy that return SERVER_ERROR will be handled correctly and raised as an appropriate error.

I also added the debug gem to :development and :test since it is very useful to be able to add things like breakpoints while debugging.

@grcooper grcooper force-pushed the grcooper/server-error-handling branch 2 times, most recently from 5d9776c to b597dfa Compare January 31, 2025 21:40
@grcooper grcooper force-pushed the grcooper/server-error-handling branch from b597dfa to 8d45b9b Compare January 31, 2025 21:48
@danmayer
Copy link
Collaborator

danmayer commented Feb 1, 2025

This looks good can you update the changelog, Unreleased section with a note on the fix.

https://github.com/petergoldstein/dalli/blob/main/CHANGELOG.md

if you have a good link to where it is mentioned in the memcached spec that would be nice, but I know memcached docs are all being updated and moving at the moment.

Copy link
Collaborator

@danmayer danmayer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

small request on changelog

@grcooper grcooper requested a review from danmayer February 3, 2025 14:12
Copy link
Owner

@petergoldstein petergoldstein left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This looks good to me.

@grcooper grcooper merged commit 5261fb9 into petergoldstein:main Feb 6, 2025
23 checks passed
@grcooper grcooper deleted the grcooper/server-error-handling branch February 6, 2025 16:50
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.

3 participants