{"action":"created","issue":{"url":"https://api.github.com/repos/alibaba/Sentinel/issues/76","repository_url":"https://api.github.com/repos/alibaba/Sentinel","labels_url":"https://api.github.com/repos/alibaba/Sentinel/issues/76/labels{/name}","comments_url":"https://api.github.com/repos/alibaba/Sentinel/issues/76/comments","events_url":"https://api.github.com/repos/alibaba/Sentinel/issues/76/events","html_url":"https://github.com/alibaba/Sentinel/pull/76","id":352201661,"node_id":"MDExOlB1bGxSZXF1ZXN0MjA5NTcxMTg0","number":76,"title":"线程限制产生竞态条件的一种规避方式","user":{"login":"manzhizhen","id":6687462,"node_id":"MDQ6VXNlcjY2ODc0NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6687462?v=4","gravatar_id":"","url":"https://api.github.com/users/manzhizhen","html_url":"https://github.com/manzhizhen","followers_url":"https://api.github.com/users/manzhizhen/followers","following_url":"https://api.github.com/users/manzhizhen/following{/other_user}","gists_url":"https://api.github.com/users/manzhizhen/gists{/gist_id}","starred_url":"https://api.github.com/users/manzhizhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manzhizhen/subscriptions","organizations_url":"https://api.github.com/users/manzhizhen/orgs","repos_url":"https://api.github.com/users/manzhizhen/repos","events_url":"https://api.github.com/users/manzhizhen/events{/privacy}","received_events_url":"https://api.github.com/users/manzhizhen/received_events","type":"User","site_admin":false},"labels":[{"id":1008973333,"node_id":"MDU6TGFiZWwxMDA4OTczMzMz","url":"https://api.github.com/repos/alibaba/Sentinel/labels/to%20review","name":"to review","color":"cfd3d7","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":3,"created_at":"2018-08-20T16:09:01Z","updated_at":"2018-11-05T12:42:24Z","closed_at":null,"author_association":"CONTRIBUTOR","pull_request":{"url":"https://api.github.com/repos/alibaba/Sentinel/pulls/76","html_url":"https://github.com/alibaba/Sentinel/pull/76","diff_url":"https://github.com/alibaba/Sentinel/pull/76.diff","patch_url":"https://github.com/alibaba/Sentinel/pull/76.patch"},"body":"<!--  Thanks for submitting a pull request! Here are some tips for you:\r\n1. Please make sure you have read and understood the contributing guidelines: https://github.com/alibaba/Sentinel/blob/master/CONTRIBUTING.md\r\n2. Please make sure the PR has a corresponding issue.\r\n-->\r\n\r\n### Describe what this PR does / why we need it\r\n详细描述见： https://github.com/alibaba/Sentinel/issues/59\r\n一种解决方案：使用信号量+ThreadLocal的方式，保证了原子性，也保证了能在接下来的Slot的处理过程中能利用到前面的结果。\r\n\r\n该方式加强了线程限制的准确性，并保持原有的逻辑不变。\r\n\r\n### Does this pull request fix one issue?\r\n\r\n<!--If that, add \"Fixes #xxxx\" below in the next line. For example, Fixes #15. Otherwise, add \"NONE\" -->\r\n\r\n### Describe how you did it\r\n\r\n\r\n### Describe how to verify it\r\n\r\n\r\n### Special notes for reviews\r\n"},"comment":{"url":"https://api.github.com/repos/alibaba/Sentinel/issues/comments/435860452","html_url":"https://github.com/alibaba/Sentinel/pull/76#issuecomment-435860452","issue_url":"https://api.github.com/repos/alibaba/Sentinel/issues/76","id":435860452,"node_id":"MDEyOklzc3VlQ29tbWVudDQzNTg2MDQ1Mg==","user":{"login":"manzhizhen","id":6687462,"node_id":"MDQ6VXNlcjY2ODc0NjI=","avatar_url":"https://avatars0.githubusercontent.com/u/6687462?v=4","gravatar_id":"","url":"https://api.github.com/users/manzhizhen","html_url":"https://github.com/manzhizhen","followers_url":"https://api.github.com/users/manzhizhen/followers","following_url":"https://api.github.com/users/manzhizhen/following{/other_user}","gists_url":"https://api.github.com/users/manzhizhen/gists{/gist_id}","starred_url":"https://api.github.com/users/manzhizhen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manzhizhen/subscriptions","organizations_url":"https://api.github.com/users/manzhizhen/orgs","repos_url":"https://api.github.com/users/manzhizhen/repos","events_url":"https://api.github.com/users/manzhizhen/events{/privacy}","received_events_url":"https://api.github.com/users/manzhizhen/received_events","type":"User","site_admin":false},"created_at":"2018-11-05T12:42:24Z","updated_at":"2018-11-05T12:42:24Z","author_association":"CONTRIBUTOR","body":"> ping @manzhizhen\r\n> Conflict happens after merging a previous commit.\r\n> Please rebase the branch against master and push it back again. Thanks a lot.\r\n\r\nAlready submitted, in integration testing"}}
{"actor":{"display_login":"manzhizhen"}}