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

Cash::Lock::Error #6

Open
dkindlund opened this issue Jul 1, 2009 · 1 comment
Open

Cash::Lock::Error #6

dkindlund opened this issue Jul 1, 2009 · 1 comment

Comments

@dkindlund
Copy link

Hi Nick,
Occasionally, I get the following "Cash::Lock::Error" and was wondering if you could shed some light as to whether cache-money or memcached generated the underlying issue:

... /var/lib/gems/1.8/gems/memcached-0.14/lib/memcached/memcached.rb:389:in `check_return_code': Key {"lock/Url:7/client_id/19799"=>"172.16.164.42:11211:8"}
Cash::Lock::Error

If it's an error that's ultimately generated by memcached, I assume there's no way to fix it at any other level (e.g., in rails). Is that a fair assessment?

Thanks,
-- Darien

@ngmoco
Copy link

ngmoco commented Nov 16, 2009

This error is caused when cache-money cannot get add a lock value to memcache. Cache-money tries a '@cache.add("lock/#{key}", Process.pid, lock_expiry)'. If this fails it waits for a period of time (which increases with each retry) then retries. It repeats for a default of 5 times.

We did not see this error until our production system was under load, not the best time to see this error, and then it occurs a lot.

If you have any ideas WRT fixing this error let us know.

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

No branches or pull requests

1 participant