{"action":"created","issue":{"url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/545","repository_url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet","labels_url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/545/labels{/name}","comments_url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/545/comments","events_url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/545/events","html_url":"https://github.com/confluentinc/confluent-kafka-dotnet/issues/545","id":329361864,"node_id":"MDU6SXNzdWUzMjkzNjE4NjQ=","number":545,"title":"ProduceAsync blocks indefinitely","user":{"login":"kuskmen","id":710652,"node_id":"MDQ6VXNlcjcxMDY1Mg==","avatar_url":"https://avatars0.githubusercontent.com/u/710652?v=4","gravatar_id":"","url":"https://api.github.com/users/kuskmen","html_url":"https://github.com/kuskmen","followers_url":"https://api.github.com/users/kuskmen/followers","following_url":"https://api.github.com/users/kuskmen/following{/other_user}","gists_url":"https://api.github.com/users/kuskmen/gists{/gist_id}","starred_url":"https://api.github.com/users/kuskmen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kuskmen/subscriptions","organizations_url":"https://api.github.com/users/kuskmen/orgs","repos_url":"https://api.github.com/users/kuskmen/repos","events_url":"https://api.github.com/users/kuskmen/events{/privacy}","received_events_url":"https://api.github.com/users/kuskmen/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":19,"created_at":"2018-06-05T08:57:33Z","updated_at":"2018-06-26T14:13:55Z","closed_at":null,"author_association":"NONE","body":"Hi, \r\nthis is more like a question since I don't have invitation in Slack I realized this would be the best place.\r\n\r\nI need to make one simple producer for our automation tests and make sure message is successfully pushed before I can continue with test execution, but sadly producer blocks for indefinite amount of time.\r\n```\r\npublic async Task PublishPurchases(IEnumerable<BetPurchase> purchases)\r\n{\r\n      foreach (var purchase in purchases)\r\n      {\r\n          await Producer.ProduceAsync(\"incoming-purchases\", purchase.GetHashCode().ToString(), purchase);\r\n      }\r\n}\r\n```\r\n\r\n### What I noticed so far:\r\n\r\n- I am using burrow dashboard as monitor for kafka, where I see messages are successfully pushed, but call is still blocked\r\n- I noticed remarks comment on the `Producer<>.ProduceAsync` and subscribed for `Producer<>.OnError` event to check if the send queue is full, but no error was raised there.\r\n\r\nThis comes from remarks as well:\r\n> Warning: if background polling is disabled and Poll is not being called in another thread, this will block indefinitely.\r\n\r\nSadly I am not sure what it means exactly? Which Poll method needs to be called in another thread? On `Consumer<>`? If yes, why would producer be blocked until consumer polls? How can I enable background polling?"},"comment":{"url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/comments/400324244","html_url":"https://github.com/confluentinc/confluent-kafka-dotnet/issues/545#issuecomment-400324244","issue_url":"https://api.github.com/repos/confluentinc/confluent-kafka-dotnet/issues/545","id":400324244,"node_id":"MDEyOklzc3VlQ29tbWVudDQwMDMyNDI0NA==","user":{"login":"chrnola","id":711598,"node_id":"MDQ6VXNlcjcxMTU5OA==","avatar_url":"https://avatars1.githubusercontent.com/u/711598?v=4","gravatar_id":"","url":"https://api.github.com/users/chrnola","html_url":"https://github.com/chrnola","followers_url":"https://api.github.com/users/chrnola/followers","following_url":"https://api.github.com/users/chrnola/following{/other_user}","gists_url":"https://api.github.com/users/chrnola/gists{/gist_id}","starred_url":"https://api.github.com/users/chrnola/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrnola/subscriptions","organizations_url":"https://api.github.com/users/chrnola/orgs","repos_url":"https://api.github.com/users/chrnola/repos","events_url":"https://api.github.com/users/chrnola/events{/privacy}","received_events_url":"https://api.github.com/users/chrnola/received_events","type":"User","site_admin":false},"created_at":"2018-06-26T14:13:54Z","updated_at":"2018-06-26T14:13:54Z","author_association":"NONE","body":"@sfrooster ah, you're right. That was originally all one line in my script but I tried splitting it up for clarity. That's what I get for refactoring in the comment editor I suppose. :)\r\n\r\nAdditionally I failed to mention that I've already tried using `ConfigureAwait(false)` on that Task to no avail. Also this script was meant to serve as a minimum viable reproduction of the issue that I encountered in my full-on async application code."}}
{"actor":{"display_login":"chrnola"}}