-
Notifications
You must be signed in to change notification settings - Fork 174
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
Possible data corruption with memcached #525
Comments
Here's a full stack trace.
The model that is failing to be cached/retrieved has some relations, but in short this is it:
|
I've started seeing the same exception on CI while running specs. |
In the second exception, was the message "no implicit conversion of Symbol into Integer" as well? Looks like for some reason we get I would try to hook into AS Notifications and log stuff on |
Also if you had this inside tests as well, please keep the "seed", it will help reproduce the issue locally and potentially find the core of the problem |
Hi!
First of all thanks for the great work on this gem.
Here's my situation/scenario: I'm deploying a Rails 7 app to AWS and using Elasticache Memcached as the store for Identity cache, rails cache and cache store.
The app runs as expected, users are able to access, the data is cached into memcached and I can see the usage metrics (bytes read/write, conn numbers, cpu, unused memory, etc)
After some time, the app started raising a lot of exceptions and users were no longer able to access it.
The app was barely used (testing infrastructure), and memcached metrics/health looks ok (lots of spare resources).
Some examples of exceptions:
Dalli::UnmarshalError: Unable to unmarshal value: marshal data too short
Dalli::DalliError: Response error: "?x??UOk$E7*?
Dalli::DalliError: Response error: VA
Dalli::DalliError: Response error: NS
Dalli::DalliError: Response error: ".\u0000[:idc_cached_nilf1670773635.8781602
Cleaning the memcached data fixed the issue, but it happened again the next day.
What could be causing this? I've double checked configs everywhere (sample below) and no clue so far on what could be causing it. I'm moving the data from identity cache to an isolated memcached instance.
Any clues? Thoughts?
Thank you!
gems:
dalli (3.2.3)
identity_cache (1.2.0)
rails (7.0.4)
memcached version 1.6.17 (docker version running on CI) and on AWS Elasticache (1.6.16)
app configs:
Update 1:
Issues happen when updating the model classes and doing a new deploy.
Example stack trace
The text was updated successfully, but these errors were encountered: