{"action":"created","issue":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/1851","repository_url":"https://api.github.com/repos/edenhill/librdkafka","labels_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1851/labels{/name}","comments_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1851/comments","events_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1851/events","html_url":"https://github.com/edenhill/librdkafka/issues/1851","id":333266987,"node_id":"MDU6SXNzdWUzMzMyNjY5ODc=","number":1851,"title":"Error len is 0 when rd_kafka_message_t contains an error","user":{"login":"accelerated","id":3112756,"node_id":"MDQ6VXNlcjMxMTI3NTY=","avatar_url":"https://avatars3.githubusercontent.com/u/3112756?v=4","gravatar_id":"","url":"https://api.github.com/users/accelerated","html_url":"https://github.com/accelerated","followers_url":"https://api.github.com/users/accelerated/followers","following_url":"https://api.github.com/users/accelerated/following{/other_user}","gists_url":"https://api.github.com/users/accelerated/gists{/gist_id}","starred_url":"https://api.github.com/users/accelerated/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/accelerated/subscriptions","organizations_url":"https://api.github.com/users/accelerated/orgs","repos_url":"https://api.github.com/users/accelerated/repos","events_url":"https://api.github.com/users/accelerated/events{/privacy}","received_events_url":"https://api.github.com/users/accelerated/received_events","type":"User","site_admin":false},"labels":[{"id":14337449,"node_id":"MDU6TGFiZWwxNDMzNzQ0OQ==","url":"https://api.github.com/repos/edenhill/librdkafka/labels/bug","name":"bug","color":"fc2929","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2018-06-18T13:21:04Z","updated_at":"2018-06-24T14:07:25Z","closed_at":"2018-06-24T14:07:21Z","author_association":"NONE","body":"librdkafka version: commit 57c000a293abada459115aa7f6052ef6d9253eff from 18/06/2018\r\n\r\nBased on the documentation of `rd_kafka_message_t` structure: \r\n```\r\n\tvoid   *payload;           /**< Producer: original message payload.\r\n\t\t\t\t    * Consumer: Depends on the value of \\c err :\r\n\t\t\t\t    * - \\c err==0: Message payload.\r\n\t\t\t\t    * - \\c err!=0: Error string */\r\n\tsize_t  len;               /**< Depends on the value of \\c err :\r\n\t\t\t\t    * - \\c err==0: Message payload length\r\n\t\t\t\t    * - \\c err!=0: Error string length */\r\n```\r\nWhen receiving an EOF message, the error and payload are properly set to `RD_KAFKA_RESP_ERR__PARTITION_EOF` and `\"Broker: No more messages\"` repectively but `len` field is 0, which is incorrect. Note that other error messages may have this issue as well."},"comment":{"url":"https://api.github.com/repos/edenhill/librdkafka/issues/comments/399759255","html_url":"https://github.com/edenhill/librdkafka/issues/1851#issuecomment-399759255","issue_url":"https://api.github.com/repos/edenhill/librdkafka/issues/1851","id":399759255,"node_id":"MDEyOklzc3VlQ29tbWVudDM5OTc1OTI1NQ==","user":{"login":"edenhill","id":524990,"node_id":"MDQ6VXNlcjUyNDk5MA==","avatar_url":"https://avatars0.githubusercontent.com/u/524990?v=4","gravatar_id":"","url":"https://api.github.com/users/edenhill","html_url":"https://github.com/edenhill","followers_url":"https://api.github.com/users/edenhill/followers","following_url":"https://api.github.com/users/edenhill/following{/other_user}","gists_url":"https://api.github.com/users/edenhill/gists{/gist_id}","starred_url":"https://api.github.com/users/edenhill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/edenhill/subscriptions","organizations_url":"https://api.github.com/users/edenhill/orgs","repos_url":"https://api.github.com/users/edenhill/repos","events_url":"https://api.github.com/users/edenhill/events{/privacy}","received_events_url":"https://api.github.com/users/edenhill/received_events","type":"User","site_admin":false},"created_at":"2018-06-24T14:07:25Z","updated_at":"2018-06-24T14:07:25Z","author_association":"OWNER","body":"Fixed on master, thanks!"}}
{"actor":{"display_login":"edenhill"}}