{"action":"created","issue":{"url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/6","labels_url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/6/labels{/name}","comments_url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/6/comments","events_url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/6/events","html_url":"https://github.com/PatrickTulskie/redis-lock/issues/6","id":26578878,"number":6,"title":"We've seen some issues in production with locks not expiring","user":{"login":"barmstrong","id":25322,"avatar_url":"https://avatars.githubusercontent.com/u/25322?v=3","gravatar_id":"","url":"https://api.github.com/users/barmstrong","html_url":"https://github.com/barmstrong","followers_url":"https://api.github.com/users/barmstrong/followers","following_url":"https://api.github.com/users/barmstrong/following{/other_user}","gists_url":"https://api.github.com/users/barmstrong/gists{/gist_id}","starred_url":"https://api.github.com/users/barmstrong/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/barmstrong/subscriptions","organizations_url":"https://api.github.com/users/barmstrong/orgs","repos_url":"https://api.github.com/users/barmstrong/repos","events_url":"https://api.github.com/users/barmstrong/events{/privacy}","received_events_url":"https://api.github.com/users/barmstrong/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-01-30T07:18:00Z","updated_at":"2015-10-02T12:04:08Z","closed_at":null,"body":"Trying this as an alternative: https://github.com/mlanett/redis-lock\r\n\r\nI haven't spent the time to look at the cause of how it happened, but wanted to comment on it."},"comment":{"url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/comments/144998929","html_url":"https://github.com/PatrickTulskie/redis-lock/issues/6#issuecomment-144998929","issue_url":"https://api.github.com/repos/PatrickTulskie/redis-lock/issues/6","id":144998929,"user":{"login":"ivoanjo","id":2785847,"avatar_url":"https://avatars.githubusercontent.com/u/2785847?v=3","gravatar_id":"","url":"https://api.github.com/users/ivoanjo","html_url":"https://github.com/ivoanjo","followers_url":"https://api.github.com/users/ivoanjo/followers","following_url":"https://api.github.com/users/ivoanjo/following{/other_user}","gists_url":"https://api.github.com/users/ivoanjo/gists{/gist_id}","starred_url":"https://api.github.com/users/ivoanjo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ivoanjo/subscriptions","organizations_url":"https://api.github.com/users/ivoanjo/orgs","repos_url":"https://api.github.com/users/ivoanjo/repos","events_url":"https://api.github.com/users/ivoanjo/events{/privacy}","received_events_url":"https://api.github.com/users/ivoanjo/received_events","type":"User","site_admin":false},"created_at":"2015-10-02T12:04:08Z","updated_at":"2015-10-02T12:04:08Z","body":"I don't see any errors getting printed when the threads first get stuck because of a lock that wasn't unlocked. After a while with no thread being able to acquire the lock, I do see the `RedisLockException`, but those are expected.\r\n\r\nI can also reproduce this without using the block-version:\r\n```\r\n        redis.lock($lock_key)\r\n        begin\r\n          redis.set('counter', redis.get('counter').to_i + 1)\r\n        ensure\r\n          redis.unlock($lock_key)\r\n        end\r\n```\r\n\r\nAnd I still get the same behavior. Nevertheless, at least for our usecase @Talkdesk I saw these issues as I was preparing a migration to a gem that implements [redlock](http://redis.io/topics/distlock), so I posted this more out of information-sharing than as a help request :)"}}