-
Notifications
You must be signed in to change notification settings - Fork 104
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
Is cache-money threadsafe? #24
Comments
Sorry to bump this musty bug, but we are in the same boat with a different error - bpardee, did you ultimately have to ditch cache_money in your JRuby move? |
Yes, we no longer use it. On Sat, Nov 26, 2011 at 3:43 PM, d01 <
|
If you don't mind my asking, was it that you definitely found it wasn't threadsafe? What did you switch to? |
I can't remember if we definitively found that it wasn't threadsafe but On Sat, Nov 26, 2011 at 9:09 PM, d01 <
|
Thank you. It's not good news in the short run, but I will be relieved to be ditching cache_money. It does appear to have worked, but it's one of the least documented, least maintained things I've ever been foolish enough to put into production, and it's just as well that I finally have to rip the bandaid off. |
I ask because we're converting an MRI app to JRuby and I got the following error which looks like a possible race condition:
undefined method
pop' for <MemCache: 1 servers, ns: nil, ro: false>:MemCache [RAILS_ROOT]/vendor/gems/nkallen-cache-money-0.2.5/lib/cash/local.rb:17:in
method_missing'RAILS_ROOT]/vendor/gems/nkallen-cache-money-0.2.5/lib/cash/local.rb:17:in
method_missing' [RAILS_ROOT]/vendor/gems/nkallen-cache-money-0.2.5/lib/cash/transactional.rb:39:in
end_transaction'[RAILS_ROOT]/vendor/gems/nkallen-cache-money-0.2.5/lib/cash/transactional.rb:19:in
transaction' [RAILS_ROOT]/vendor/gems/nkallen-cache-money-0.2.5/lib/cache_money.rb:58:in
transaction_with_cache_transaction'[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:228:in
with_transaction_returning_status' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:196:in
save_with_transactions'[RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:208:in
rollback_active_record_state!' [RAILS_ROOT]/vendor/rails/activerecord/lib/active_record/transactions.rb:196:in
save_with_transactions'[RAILS_ROOT]/vendor/plugins/active_scaffold/lib/extensions/unsaved_record.rb:15:in `save_with_unsaved_flag'
It looks like an extra end_transaction was called without a matching begin_transaction?
The text was updated successfully, but these errors were encountered: