{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/855","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/855/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/855/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/855/events","html_url":"https://github.com/hashicorp/consul/issues/855","id":67501596,"number":855,"title":"Reassert ownership of a lock","user":{"login":"fraenkel","id":929377,"avatar_url":"https://avatars.githubusercontent.com/u/929377?v=3","gravatar_id":"","url":"https://api.github.com/users/fraenkel","html_url":"https://github.com/fraenkel","followers_url":"https://api.github.com/users/fraenkel/followers","following_url":"https://api.github.com/users/fraenkel/following{/other_user}","gists_url":"https://api.github.com/users/fraenkel/gists{/gist_id}","starred_url":"https://api.github.com/users/fraenkel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fraenkel/subscriptions","organizations_url":"https://api.github.com/users/fraenkel/orgs","repos_url":"https://api.github.com/users/fraenkel/repos","events_url":"https://api.github.com/users/fraenkel/events{/privacy}","received_events_url":"https://api.github.com/users/fraenkel/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/hashicorp/consul/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-04-10T03:40:38Z","updated_at":"2015-05-06T19:05:22Z","closed_at":"2015-05-06T19:05:22Z","body":"My latest dilemma is re-acquiring sessions and locks.\r\nIn the case where a connection breaks in the monitor lock, I understand the requirement to report the lock is lost.\r\nI am able to renew my session which means it wasn't lost yet, but if I attempt to acquire a lock which my session does own, I block. And since I have renewed my session, the lock will continue to be held.\r\nSeems like the client code should allow a lock.Lock() to detect that I still own the lock and skip the acquire phase."},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/99576380","html_url":"https://github.com/hashicorp/consul/issues/855#issuecomment-99576380","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/855","id":99576380,"user":{"login":"armon","id":592032,"avatar_url":"https://avatars.githubusercontent.com/u/592032?v=3","gravatar_id":"","url":"https://api.github.com/users/armon","html_url":"https://github.com/armon","followers_url":"https://api.github.com/users/armon/followers","following_url":"https://api.github.com/users/armon/following{/other_user}","gists_url":"https://api.github.com/users/armon/gists{/gist_id}","starred_url":"https://api.github.com/users/armon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/armon/subscriptions","organizations_url":"https://api.github.com/users/armon/orgs","repos_url":"https://api.github.com/users/armon/repos","events_url":"https://api.github.com/users/armon/events{/privacy}","received_events_url":"https://api.github.com/users/armon/received_events","type":"User","site_admin":false},"created_at":"2015-05-06T19:05:22Z","updated_at":"2015-05-06T19:05:22Z","body":"Fixed by #861"}}