{"action":"created","comment":{"url":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments/79336356","id":79336356,"diff_hunk":"@@ -181,6 +185,34 @@ private[kafka] class KafkaConsumerActor[K, V](settings: ConsumerSettings[K, V])\n       else consumer.pause(java.util.Collections.singleton(tp))\n     }\n \n+    def tryPoll(timeout: Long, onSuccess: ConsumerRecords[K, V] => Unit): Unit = {\n+      Try(consumer.poll(timeout))\n+        .transform(\n+          rawResult => {\n+            wakeupTask.cancel()\n+            wakeups = 0\n+            Success(onSuccess(rawResult))\n+          },\n+          f => {\n+            wakeupTask.cancel()\n+            Failure(f)\n+          }\n+        )\n+        .recover {\n+          case w: WakeupException =>\n+            wakeups = wakeups + 1\n+            if (wakeups == MaxWakeups) {\n+              log.error(\"WakeupException limit exceeded, stopping\")","path":"core/src/main/scala/akka/kafka/KafkaConsumerActor.scala","position":51,"original_position":51,"commit_id":"a94d662fb4e60c8516c6ad1c188094b7b252708c","original_commit_id":"a94d662fb4e60c8516c6ad1c188094b7b252708c","user":{"login":"patriknw","id":336161,"avatar_url":"https://avatars.githubusercontent.com/u/336161?v=3","gravatar_id":"","url":"https://api.github.com/users/patriknw","html_url":"https://github.com/patriknw","followers_url":"https://api.github.com/users/patriknw/followers","following_url":"https://api.github.com/users/patriknw/following{/other_user}","gists_url":"https://api.github.com/users/patriknw/gists{/gist_id}","starred_url":"https://api.github.com/users/patriknw/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/patriknw/subscriptions","organizations_url":"https://api.github.com/users/patriknw/orgs","repos_url":"https://api.github.com/users/patriknw/repos","events_url":"https://api.github.com/users/patriknw/events{/privacy}","received_events_url":"https://api.github.com/users/patriknw/received_events","type":"User","site_admin":false},"body":"ah, already don, as warning","created_at":"2016-09-19T07:18:11Z","updated_at":"2016-09-19T07:18:12Z","html_url":"https://github.com/akka/reactive-kafka/pull/230#discussion_r79336356","pull_request_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/230","_links":{"self":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments/79336356"},"html":{"href":"https://github.com/akka/reactive-kafka/pull/230#discussion_r79336356"},"pull_request":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/230"}}},"pull_request":{"url":"https://api.github.com/repos/akka/reactive-kafka/pulls/230","id":85568637,"html_url":"https://github.com/akka/reactive-kafka/pull/230","diff_url":"https://github.com/akka/reactive-kafka/pull/230.diff","patch_url":"https://github.com/akka/reactive-kafka/pull/230.patch","issue_url":"https://api.github.com/repos/akka/reactive-kafka/issues/230","number":230,"state":"open","locked":false,"title":"Consumer error handling","user":{"login":"kciesielski","id":1413553,"avatar_url":"https://avatars.githubusercontent.com/u/1413553?v=3","gravatar_id":"","url":"https://api.github.com/users/kciesielski","html_url":"https://github.com/kciesielski","followers_url":"https://api.github.com/users/kciesielski/followers","following_url":"https://api.github.com/users/kciesielski/following{/other_user}","gists_url":"https://api.github.com/users/kciesielski/gists{/gist_id}","starred_url":"https://api.github.com/users/kciesielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kciesielski/subscriptions","organizations_url":"https://api.github.com/users/kciesielski/orgs","repos_url":"https://api.github.com/users/kciesielski/repos","events_url":"https://api.github.com/users/kciesielski/events{/privacy}","received_events_url":"https://api.github.com/users/kciesielski/received_events","type":"User","site_admin":false},"body":"- WakeupException is swallowed until limit is exceeded, then actor stops\r\n- Any other exception stops the actor immediately\r\n- Refs #227 #224","created_at":"2016-09-16T12:58:12Z","updated_at":"2016-09-19T07:18:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"44895beac33e4b91baef456dc3dced119148c0b2","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/230/commits","review_comments_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/230/comments","review_comment_url":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/akka/reactive-kafka/issues/230/comments","statuses_url":"https://api.github.com/repos/akka/reactive-kafka/statuses/a94d662fb4e60c8516c6ad1c188094b7b252708c","head":{"label":"kciesielski:fix-consumer-restarts","ref":"fix-consumer-restarts","sha":"a94d662fb4e60c8516c6ad1c188094b7b252708c","user":{"login":"kciesielski","id":1413553,"avatar_url":"https://avatars.githubusercontent.com/u/1413553?v=3","gravatar_id":"","url":"https://api.github.com/users/kciesielski","html_url":"https://github.com/kciesielski","followers_url":"https://api.github.com/users/kciesielski/followers","following_url":"https://api.github.com/users/kciesielski/following{/other_user}","gists_url":"https://api.github.com/users/kciesielski/gists{/gist_id}","starred_url":"https://api.github.com/users/kciesielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kciesielski/subscriptions","organizations_url":"https://api.github.com/users/kciesielski/orgs","repos_url":"https://api.github.com/users/kciesielski/repos","events_url":"https://api.github.com/users/kciesielski/events{/privacy}","received_events_url":"https://api.github.com/users/kciesielski/received_events","type":"User","site_admin":false},"repo":{"id":52868149,"name":"reactive-kafka","full_name":"kciesielski/reactive-kafka","owner":{"login":"kciesielski","id":1413553,"avatar_url":"https://avatars.githubusercontent.com/u/1413553?v=3","gravatar_id":"","url":"https://api.github.com/users/kciesielski","html_url":"https://github.com/kciesielski","followers_url":"https://api.github.com/users/kciesielski/followers","following_url":"https://api.github.com/users/kciesielski/following{/other_user}","gists_url":"https://api.github.com/users/kciesielski/gists{/gist_id}","starred_url":"https://api.github.com/users/kciesielski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kciesielski/subscriptions","organizations_url":"https://api.github.com/users/kciesielski/orgs","repos_url":"https://api.github.com/users/kciesielski/repos","events_url":"https://api.github.com/users/kciesielski/events{/privacy}","received_events_url":"https://api.github.com/users/kciesielski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kciesielski/reactive-kafka","description":"Reactive Streams API for Apache Kafka","fork":true,"url":"https://api.github.com/repos/kciesielski/reactive-kafka","forks_url":"https://api.github.com/repos/kciesielski/reactive-kafka/forks","keys_url":"https://api.github.com/repos/kciesielski/reactive-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kciesielski/reactive-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kciesielski/reactive-kafka/teams","hooks_url":"https://api.github.com/repos/kciesielski/reactive-kafka/hooks","issue_events_url":"https://api.github.com/repos/kciesielski/reactive-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/kciesielski/reactive-kafka/events","assignees_url":"https://api.github.com/repos/kciesielski/reactive-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/kciesielski/reactive-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/kciesielski/reactive-kafka/tags","blobs_url":"https://api.github.com/repos/kciesielski/reactive-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kciesielski/reactive-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kciesielski/reactive-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/kciesielski/reactive-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kciesielski/reactive-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/kciesielski/reactive-kafka/languages","stargazers_url":"https://api.github.com/repos/kciesielski/reactive-kafka/stargazers","contributors_url":"https://api.github.com/repos/kciesielski/reactive-kafka/contributors","subscribers_url":"https://api.github.com/repos/kciesielski/reactive-kafka/subscribers","subscription_url":"https://api.github.com/repos/kciesielski/reactive-kafka/subscription","commits_url":"https://api.github.com/repos/kciesielski/reactive-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/kciesielski/reactive-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/kciesielski/reactive-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/kciesielski/reactive-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/kciesielski/reactive-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/kciesielski/reactive-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kciesielski/reactive-kafka/merges","archive_url":"https://api.github.com/repos/kciesielski/reactive-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kciesielski/reactive-kafka/downloads","issues_url":"https://api.github.com/repos/kciesielski/reactive-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/kciesielski/reactive-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/kciesielski/reactive-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/kciesielski/reactive-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kciesielski/reactive-kafka/labels{/name}","releases_url":"https://api.github.com/repos/kciesielski/reactive-kafka/releases{/id}","deployments_url":"https://api.github.com/repos/kciesielski/reactive-kafka/deployments","created_at":"2016-03-01T10:23:00Z","updated_at":"2016-07-06T09:38:24Z","pushed_at":"2016-09-16T14:38:58Z","git_url":"git://github.com/kciesielski/reactive-kafka.git","ssh_url":"git@github.com:kciesielski/reactive-kafka.git","clone_url":"https://github.com/kciesielski/reactive-kafka.git","svn_url":"https://github.com/kciesielski/reactive-kafka","homepage":null,"size":881,"stargazers_count":2,"watchers_count":2,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":0,"forks":2,"open_issues":0,"watchers":2,"default_branch":"master"}},"base":{"label":"akka:master","ref":"master","sha":"251af505d690a9c3fcfdb8aa17bf3186cd779b61","user":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"repo":{"id":28635588,"name":"reactive-kafka","full_name":"akka/reactive-kafka","owner":{"login":"akka","id":1496237,"avatar_url":"https://avatars.githubusercontent.com/u/1496237?v=3","gravatar_id":"","url":"https://api.github.com/users/akka","html_url":"https://github.com/akka","followers_url":"https://api.github.com/users/akka/followers","following_url":"https://api.github.com/users/akka/following{/other_user}","gists_url":"https://api.github.com/users/akka/gists{/gist_id}","starred_url":"https://api.github.com/users/akka/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akka/subscriptions","organizations_url":"https://api.github.com/users/akka/orgs","repos_url":"https://api.github.com/users/akka/repos","events_url":"https://api.github.com/users/akka/events{/privacy}","received_events_url":"https://api.github.com/users/akka/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/akka/reactive-kafka","description":"Reactive Streams API for Apache Kafka","fork":false,"url":"https://api.github.com/repos/akka/reactive-kafka","forks_url":"https://api.github.com/repos/akka/reactive-kafka/forks","keys_url":"https://api.github.com/repos/akka/reactive-kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/akka/reactive-kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/akka/reactive-kafka/teams","hooks_url":"https://api.github.com/repos/akka/reactive-kafka/hooks","issue_events_url":"https://api.github.com/repos/akka/reactive-kafka/issues/events{/number}","events_url":"https://api.github.com/repos/akka/reactive-kafka/events","assignees_url":"https://api.github.com/repos/akka/reactive-kafka/assignees{/user}","branches_url":"https://api.github.com/repos/akka/reactive-kafka/branches{/branch}","tags_url":"https://api.github.com/repos/akka/reactive-kafka/tags","blobs_url":"https://api.github.com/repos/akka/reactive-kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/akka/reactive-kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/akka/reactive-kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/akka/reactive-kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/akka/reactive-kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/akka/reactive-kafka/languages","stargazers_url":"https://api.github.com/repos/akka/reactive-kafka/stargazers","contributors_url":"https://api.github.com/repos/akka/reactive-kafka/contributors","subscribers_url":"https://api.github.com/repos/akka/reactive-kafka/subscribers","subscription_url":"https://api.github.com/repos/akka/reactive-kafka/subscription","commits_url":"https://api.github.com/repos/akka/reactive-kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/akka/reactive-kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/akka/reactive-kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/akka/reactive-kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/akka/reactive-kafka/contents/{+path}","compare_url":"https://api.github.com/repos/akka/reactive-kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/akka/reactive-kafka/merges","archive_url":"https://api.github.com/repos/akka/reactive-kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/akka/reactive-kafka/downloads","issues_url":"https://api.github.com/repos/akka/reactive-kafka/issues{/number}","pulls_url":"https://api.github.com/repos/akka/reactive-kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/akka/reactive-kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/akka/reactive-kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/akka/reactive-kafka/labels{/name}","releases_url":"https://api.github.com/repos/akka/reactive-kafka/releases{/id}","deployments_url":"https://api.github.com/repos/akka/reactive-kafka/deployments","created_at":"2014-12-30T15:30:02Z","updated_at":"2016-09-17T15:22:43Z","pushed_at":"2016-09-16T14:38:58Z","git_url":"git://github.com/akka/reactive-kafka.git","ssh_url":"git@github.com:akka/reactive-kafka.git","clone_url":"https://github.com/akka/reactive-kafka.git","svn_url":"https://github.com/akka/reactive-kafka","homepage":null,"size":969,"stargazers_count":612,"watchers_count":612,"language":"Scala","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":129,"mirror_url":null,"open_issues_count":17,"forks":129,"open_issues":17,"watchers":612,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/230"},"html":{"href":"https://github.com/akka/reactive-kafka/pull/230"},"issue":{"href":"https://api.github.com/repos/akka/reactive-kafka/issues/230"},"comments":{"href":"https://api.github.com/repos/akka/reactive-kafka/issues/230/comments"},"review_comments":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/230/comments"},"review_comment":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/akka/reactive-kafka/pulls/230/commits"},"statuses":{"href":"https://api.github.com/repos/akka/reactive-kafka/statuses/a94d662fb4e60c8516c6ad1c188094b7b252708c"}}}}
{"actor":{"display_login":"patriknw"}}