{"action":"opened","issue":{"url":"https://api.github.com/repos/Shopify/sarama/issues/595","labels_url":"https://api.github.com/repos/Shopify/sarama/issues/595/labels{/name}","comments_url":"https://api.github.com/repos/Shopify/sarama/issues/595/comments","events_url":"https://api.github.com/repos/Shopify/sarama/issues/595/events","html_url":"https://github.com/Shopify/sarama/issues/595","id":126390834,"number":595,"title":"ErrNotLeaderForPartition error","user":{"login":"ishare","id":1309607,"avatar_url":"https://avatars.githubusercontent.com/u/1309607?v=3","gravatar_id":"","url":"https://api.github.com/users/ishare","html_url":"https://github.com/ishare","followers_url":"https://api.github.com/users/ishare/followers","following_url":"https://api.github.com/users/ishare/following{/other_user}","gists_url":"https://api.github.com/users/ishare/gists{/gist_id}","starred_url":"https://api.github.com/users/ishare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ishare/subscriptions","organizations_url":"https://api.github.com/users/ishare/orgs","repos_url":"https://api.github.com/users/ishare/repos","events_url":"https://api.github.com/users/ishare/events{/privacy}","received_events_url":"https://api.github.com/users/ishare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-01-13T10:42:54Z","updated_at":"2016-01-13T10:42:54Z","closed_at":null,"body":"We meet ErrNotLeaderForPartition error, and may happen every now and then. I doubt if we need to force to `updateLeader` if this error happens. We use the latest driver commits, and kafka 0.8.2.1, error logs are as below:\r\n\r\n`kafka: Failed to produce message to topic CLIENT_LATENCY: kafka server: Tried to send a message to a replica that is not the leader for some partition. Your metadata is out of date.`\r\n"}}