{"action":"created","issue":{"url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/24","labels_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/24/labels{/name}","comments_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/24/comments","events_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/24/events","html_url":"https://github.com/spicavigo/kafka-rust/issues/24","id":109676973,"number":24,"title":"Regression causing lost messages","user":{"login":"jedisct1","id":124872,"avatar_url":"https://avatars.githubusercontent.com/u/124872?v=3","gravatar_id":"","url":"https://api.github.com/users/jedisct1","html_url":"https://github.com/jedisct1","followers_url":"https://api.github.com/users/jedisct1/followers","following_url":"https://api.github.com/users/jedisct1/following{/other_user}","gists_url":"https://api.github.com/users/jedisct1/gists{/gist_id}","starred_url":"https://api.github.com/users/jedisct1/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jedisct1/subscriptions","organizations_url":"https://api.github.com/users/jedisct1/orgs","repos_url":"https://api.github.com/users/jedisct1/repos","events_url":"https://api.github.com/users/jedisct1/events{/privacy}","received_events_url":"https://api.github.com/users/jedisct1/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-10-04T12:02:52Z","updated_at":"2015-10-04T16:37:07Z","closed_at":null,"body":"Change 62535d6a762e638d8c815b773f9d6e1b10539108 introduced a serious regression.\r\n\r\nThe first message for a given topic is now always lost.\r\n\r\n```rust\r\n    let m1 = \"a\".to_owned().into_bytes();\r\n    let m2 = \"b\".to_owned().into_bytes();\r\n    let m3 = \"c\".to_owned().into_bytes();\r\n    let req = vec!(utils::ProduceMessage{topic: \"test\".to_owned(), message: m1},\r\n                   utils::ProduceMessage{topic: \"test\".to_owned(), message: m2},\r\n                   utils::ProduceMessage{topic: \"test\".to_owned(), message: m3}\r\n                   );\r\n    client.send_messages(1, 100, req);\r\n```\r\n\r\n=> Only `m2` and `m3` are sent, `m1` is ignored.\r\n\r\nI'd suggest reverting this change.\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/comments/145364686","html_url":"https://github.com/spicavigo/kafka-rust/issues/24#issuecomment-145364686","issue_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/24","id":145364686,"user":{"login":"xitep","id":8274125,"avatar_url":"https://avatars.githubusercontent.com/u/8274125?v=3","gravatar_id":"","url":"https://api.github.com/users/xitep","html_url":"https://github.com/xitep","followers_url":"https://api.github.com/users/xitep/followers","following_url":"https://api.github.com/users/xitep/following{/other_user}","gists_url":"https://api.github.com/users/xitep/gists{/gist_id}","starred_url":"https://api.github.com/users/xitep/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xitep/subscriptions","organizations_url":"https://api.github.com/users/xitep/orgs","repos_url":"https://api.github.com/users/xitep/repos","events_url":"https://api.github.com/users/xitep/events{/privacy}","received_events_url":"https://api.github.com/users/xitep/received_events","type":"User","site_admin":false},"created_at":"2015-10-04T16:37:07Z","updated_at":"2015-10-04T16:37:07Z","body":"@jedisct1 thanks for reporting this. PR #25 should be fixing the issue. sorry for the troubles."}}