{"action":"created","issue":{"url":"https://api.github.com/repos/hashicorp/consul/issues/4508","repository_url":"https://api.github.com/repos/hashicorp/consul","labels_url":"https://api.github.com/repos/hashicorp/consul/issues/4508/labels{/name}","comments_url":"https://api.github.com/repos/hashicorp/consul/issues/4508/comments","events_url":"https://api.github.com/repos/hashicorp/consul/issues/4508/events","html_url":"https://github.com/hashicorp/consul/issues/4508","id":349007424,"node_id":"MDU6SXNzdWUzNDkwMDc0MjQ=","number":4508,"title":"Lock acquired on a key is not released in TTL time","user":{"login":"aakashgyl","id":30066934,"node_id":"MDQ6VXNlcjMwMDY2OTM0","avatar_url":"https://avatars0.githubusercontent.com/u/30066934?v=4","gravatar_id":"","url":"https://api.github.com/users/aakashgyl","html_url":"https://github.com/aakashgyl","followers_url":"https://api.github.com/users/aakashgyl/followers","following_url":"https://api.github.com/users/aakashgyl/following{/other_user}","gists_url":"https://api.github.com/users/aakashgyl/gists{/gist_id}","starred_url":"https://api.github.com/users/aakashgyl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aakashgyl/subscriptions","organizations_url":"https://api.github.com/users/aakashgyl/orgs","repos_url":"https://api.github.com/users/aakashgyl/repos","events_url":"https://api.github.com/users/aakashgyl/events{/privacy}","received_events_url":"https://api.github.com/users/aakashgyl/received_events","type":"User","site_admin":false},"labels":[{"id":137572609,"node_id":"MDU6TGFiZWwxMzc1NzI2MDk=","url":"https://api.github.com/repos/hashicorp/consul/labels/docs","name":"docs","color":"bfe5bf","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2018-08-09T07:21:57Z","updated_at":"2018-12-06T23:42:18Z","closed_at":null,"author_association":"NONE","body":"Hi,\r\n\r\nIn the consul, I acquired a lock on a key (behaviour = release) and specified a TTL while creating a session. I was expecting the lock to be auto-released after TTL. But it was not released.\r\nBelow is my observations:\r\nFor TTL of 10sec, lock is auto-released in 35sec\r\n15sec -> 45sec\r\n20sec -> 55sec\r\n25sec -> 65sec\r\n\r\nWhy is this happening?"},"comment":{"url":"https://api.github.com/repos/hashicorp/consul/issues/comments/445070952","html_url":"https://github.com/hashicorp/consul/issues/4508#issuecomment-445070952","issue_url":"https://api.github.com/repos/hashicorp/consul/issues/4508","id":445070952,"node_id":"MDEyOklzc3VlQ29tbWVudDQ0NTA3MDk1Mg==","user":{"login":"pearkes","id":846194,"node_id":"MDQ6VXNlcjg0NjE5NA==","avatar_url":"https://avatars0.githubusercontent.com/u/846194?v=4","gravatar_id":"","url":"https://api.github.com/users/pearkes","html_url":"https://github.com/pearkes","followers_url":"https://api.github.com/users/pearkes/followers","following_url":"https://api.github.com/users/pearkes/following{/other_user}","gists_url":"https://api.github.com/users/pearkes/gists{/gist_id}","starred_url":"https://api.github.com/users/pearkes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pearkes/subscriptions","organizations_url":"https://api.github.com/users/pearkes/orgs","repos_url":"https://api.github.com/users/pearkes/repos","events_url":"https://api.github.com/users/pearkes/events{/privacy}","received_events_url":"https://api.github.com/users/pearkes/received_events","type":"User","site_admin":false},"created_at":"2018-12-06T23:42:18Z","updated_at":"2018-12-06T23:42:18Z","author_association":"MEMBER","body":"@bkeroackdsc thanks for catching that! Definitely possible that part of the PR could be incorrect. From my understanding of the behavior mentioned in this issue it appears it may be using the default when 0 is specified, but I didn't look too closely and was kind of unsure...if you have any suggestions would appreciate hearing them otherwise will plan to look further at that prior to merging that PR. I guess if the behavior is that it defaults to 15s it may be a bug given those docs."}}
{"actor":{"display_login":"pearkes"}}