{"action":"closed","issue":{"url":"https://api.github.com/repos/Parsely/pykafka/issues/350","labels_url":"https://api.github.com/repos/Parsely/pykafka/issues/350/labels{/name}","comments_url":"https://api.github.com/repos/Parsely/pykafka/issues/350/comments","events_url":"https://api.github.com/repos/Parsely/pykafka/issues/350/events","html_url":"https://github.com/Parsely/pykafka/issues/350","id":116641833,"number":350,"title":"overzealous LeaderNotAvailable","user":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Parsely/pykafka/labels/backlog","name":"backlog","color":"009800"},{"url":"https://api.github.com/repos/Parsely/pykafka/labels/bug","name":"bug","color":"fc2929"}],"state":"closed","locked":false,"assignee":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/Parsely/pykafka/milestones/10","html_url":"https://github.com/Parsely/pykafka/milestones/2.0.4","labels_url":"https://api.github.com/repos/Parsely/pykafka/milestones/10/labels","id":1405643,"number":10,"title":"2.0.4","description":"","creator":{"login":"emmett9001","id":723615,"avatar_url":"https://avatars.githubusercontent.com/u/723615?v=3","gravatar_id":"","url":"https://api.github.com/users/emmett9001","html_url":"https://github.com/emmett9001","followers_url":"https://api.github.com/users/emmett9001/followers","following_url":"https://api.github.com/users/emmett9001/following{/other_user}","gists_url":"https://api.github.com/users/emmett9001/gists{/gist_id}","starred_url":"https://api.github.com/users/emmett9001/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emmett9001/subscriptions","organizations_url":"https://api.github.com/users/emmett9001/orgs","repos_url":"https://api.github.com/users/emmett9001/repos","events_url":"https://api.github.com/users/emmett9001/events{/privacy}","received_events_url":"https://api.github.com/users/emmett9001/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":2,"state":"open","created_at":"2015-11-10T23:58:24Z","updated_at":"2015-11-14T06:25:49Z","due_on":null,"closed_at":null},"comments":3,"created_at":"2015-11-12T21:15:41Z","updated_at":"2015-11-14T06:25:49Z","closed_at":"2015-11-14T06:25:49Z","body":"[Here](https://github.com/Parsely/pykafka/blob/ac43c12b00578c7de22db8b080f6f2b3c2acdc10/pykafka/topic.py#L149), we throw `LeaderNotAvailable` in response to any `KeyError`. In fact, `KeyError` can happen in this function when it's a replica that's not available, not the leader. The former can still allow normal operation, the latter cannot."}}