{"action":"created","issue":{"url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/135","repository_url":"https://api.github.com/repos/spicavigo/kafka-rust","labels_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/135/labels{/name}","comments_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/135/comments","events_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/135/events","html_url":"https://github.com/spicavigo/kafka-rust/issues/135","id":187359105,"number":135,"title":"UnknownTopicOrPartition","user":{"login":"ChrisMacNaughton","id":429739,"avatar_url":"https://avatars.githubusercontent.com/u/429739?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisMacNaughton","html_url":"https://github.com/ChrisMacNaughton","followers_url":"https://api.github.com/users/ChrisMacNaughton/followers","following_url":"https://api.github.com/users/ChrisMacNaughton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisMacNaughton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisMacNaughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisMacNaughton/subscriptions","organizations_url":"https://api.github.com/users/ChrisMacNaughton/orgs","repos_url":"https://api.github.com/users/ChrisMacNaughton/repos","events_url":"https://api.github.com/users/ChrisMacNaughton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisMacNaughton/received_events","type":"User","site_admin":false},"labels":[{"id":208792032,"url":"https://api.github.com/repos/spicavigo/kafka-rust/labels/bug","name":"bug","color":"fc2929","default":true},{"id":208792035,"url":"https://api.github.com/repos/spicavigo/kafka-rust/labels/help%20wanted","name":"help wanted","color":"159818","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":4,"created_at":"2016-11-04T15:13:16Z","updated_at":"2016-11-04T15:52:14Z","closed_at":null,"body":"I'm playing with kafka for the first time, and I'm running into some issues? I've stared with both kafka 0.9.0.1 and 0.10.1 and I'm having the same problem.\r\n\r\nI have auto creation of topics enabled on the cluster, and I'm doing:\r\n\r\n```rust\r\nmatch client.load_metadata(&vec![\"events-raw\"]) {\r\n// ...\r\n}\r\n```\r\n\r\nto try to ensure creation of the topic. That part is working fine, and the topic IS created in kafka. After that, I'm trying to send in records with:\r\n\r\n```rust\r\nlet mut records = vec![];\r\nrecords.push(Record {\r\n    topic: \"events-raw\",\r\n    partition: 0,\r\n    key: (),\r\n    value: txt,\r\n});\r\nmatch producer.send_all(&records) {\r\n    Ok(_) => {}\r\n     Err(e) => println!(\"Error writing event: {:?}\", e),\r\n};\r\n```\r\n\r\nand this is priting out the error mentioned in the title."},"comment":{"url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/comments/258469731","html_url":"https://github.com/spicavigo/kafka-rust/issues/135#issuecomment-258469731","issue_url":"https://api.github.com/repos/spicavigo/kafka-rust/issues/135","id":258469731,"user":{"login":"ChrisMacNaughton","id":429739,"avatar_url":"https://avatars.githubusercontent.com/u/429739?v=3","gravatar_id":"","url":"https://api.github.com/users/ChrisMacNaughton","html_url":"https://github.com/ChrisMacNaughton","followers_url":"https://api.github.com/users/ChrisMacNaughton/followers","following_url":"https://api.github.com/users/ChrisMacNaughton/following{/other_user}","gists_url":"https://api.github.com/users/ChrisMacNaughton/gists{/gist_id}","starred_url":"https://api.github.com/users/ChrisMacNaughton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChrisMacNaughton/subscriptions","organizations_url":"https://api.github.com/users/ChrisMacNaughton/orgs","repos_url":"https://api.github.com/users/ChrisMacNaughton/repos","events_url":"https://api.github.com/users/ChrisMacNaughton/events{/privacy}","received_events_url":"https://api.github.com/users/ChrisMacNaughton/received_events","type":"User","site_admin":false},"created_at":"2016-11-04T15:52:14Z","updated_at":"2016-11-04T15:52:14Z","body":"Also, I can see the topic in client.topics(), doing:\r\n\r\n```rust\r\nfor topic in client.topics() {\r\n    trace!(\"Topic: {:?}\", topic);\r\n}\r\n```\r\n\r\nshows:\r\n```bash\r\n2016-11-04 11:51:49 TRACE [api::v1::new] Topic: Topic { name: events-raw, partitions: Partitions { [] } }\r\n```"}}
{"actor":{"display_login":"ChrisMacNaughton"}}