-
Notifications
You must be signed in to change notification settings - Fork 53
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
"NameError uninitialized constant Goldiloader" on uninstallation #33
Comments
Hmm. Do you have a stack trace? |
@syamilmj - Do you have a stack trace and/or a reproducible test case? |
Hey jturkel, sorry for not replying earlier. Unfortunately I no longer have the log. Here's a sample code to reproduce:
We're using Amazon Elasticache for memcached, and running EC2 servers. |
@syamilmj - Do you have a minimal Rails app that can reproduce the issue? I'm happy to look into it if I can get a reproducible test case. |
@syamilmj - I'm closing this due to lack of activity. Please reopen if it if you can provide a reproducible test case and/or a stack trace. |
I can confirm this is still an issue (at least with Rials 6.1 and redis cache store, didn't try others). Here's a minimal repro app: https://github.com/Drowze/test-goldiloader-uninstall-issue
@jturkel can we reopen this issue? 😄 |
Thank you for the reproducible test case @Drowze! It looks like the problem comes from caching the results of I know Rails says to avoid caching ActiveRecord instances here (and Shopify has a great post on why caching using
Option 1 is definitely preferably since the data structure will bloat the size of the cache entires but I'll have to investigate the feasibility. Neither option will help with existing cache entries though. I'll investigate a bit more over the next few weeks but PRs are always welcome ;) |
Hi,
First of all, thank you for this great gem.
Some of our endpoints are being cached (using
Rails.cache
) and they failed withDalli::RingError: No server available
upon uninstalling goldiloader.Checking the log, I saw this:
NameError uninitialized constant Goldiloader
Clearing up the cache brings back the server but I'm curious as to how I can prevent this in the future?
The text was updated successfully, but these errors were encountered: