{"action":"created","comment":{"url":"https://api.github.com/repos/apache/kafka/pulls/comments/48757704","id":48757704,"diff_hunk":"@@ -0,0 +1,34 @@\n+/**\n+ * Licensed to the Apache Software Foundation (ASF) under one or more\n+ * contributor license agreements.  See the NOTICE file distributed with\n+ * this work for additional information regarding copyright ownership.\n+ * The ASF licenses this file to You under the Apache License, Version 2.0\n+ * (the \"License\"); you may not use this file except in compliance with\n+ * the License.  You may obtain a copy of the License at\n+ *\n+ *    http://www.apache.org/licenses/LICENSE-2.0\n+ *\n+ * Unless required by applicable law or agreed to in writing, software\n+ * distributed under the License is distributed on an \"AS IS\" BASIS,\n+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n+ * See the License for the specific language governing permissions and\n+ * limitations under the License.\n+ */\n+package org.apache.kafka.common.errors;\n+\n+/**\n+ * Indicates that there is no stored offset for a partition and no defined offset\n+ * reset policy.\n+ */\n+public class NoOffsetForPartitionException extends InvalidOffsetException {","path":"clients/src/main/java/org/apache/kafka/common/errors/NoOffsetForPartitionException.java","position":23,"original_position":23,"commit_id":"eba3b41309cf9f0436a0159dffa63fa51d89beb7","original_commit_id":"eba3b41309cf9f0436a0159dffa63fa51d89beb7","user":{"login":"ewencp","id":47366,"avatar_url":"https://avatars.githubusercontent.com/u/47366?v=3","gravatar_id":"","url":"https://api.github.com/users/ewencp","html_url":"https://github.com/ewencp","followers_url":"https://api.github.com/users/ewencp/followers","following_url":"https://api.github.com/users/ewencp/following{/other_user}","gists_url":"https://api.github.com/users/ewencp/gists{/gist_id}","starred_url":"https://api.github.com/users/ewencp/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewencp/subscriptions","organizations_url":"https://api.github.com/users/ewencp/orgs","repos_url":"https://api.github.com/users/ewencp/repos","events_url":"https://api.github.com/users/ewencp/events{/privacy}","received_events_url":"https://api.github.com/users/ewencp/received_events","type":"User","site_admin":false},"body":"This exception isn't actually used anywhere. There's an equivalent one in `o.a.k.clients.consumer` which is used. Did we want this to be available under `common` or is under `clients` enough? If the latter, should we clear this one out from this patch? I remember there was discussion of this exception earlier wrt import-control settings, but I don't know if there was a reason it ended up quite like this. We have the same duplication for `OffsetOutOfRangeException`, except that one appears in `Errors.java`.","created_at":"2016-01-04T17:47:38Z","updated_at":"2016-01-04T17:47:38Z","html_url":"https://github.com/apache/kafka/pull/616#discussion_r48757704","pull_request_url":"https://api.github.com/repos/apache/kafka/pulls/616","_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments/48757704"},"html":{"href":"https://github.com/apache/kafka/pull/616#discussion_r48757704"},"pull_request":{"href":"https://api.github.com/repos/apache/kafka/pulls/616"}}},"pull_request":{"url":"https://api.github.com/repos/apache/kafka/pulls/616","id":52443314,"html_url":"https://github.com/apache/kafka/pull/616","diff_url":"https://github.com/apache/kafka/pull/616.diff","patch_url":"https://github.com/apache/kafka/pull/616.patch","issue_url":"https://api.github.com/repos/apache/kafka/issues/616","number":616,"state":"open","locked":false,"title":"KAFKA-2929: Migrate duplicate error mapping functionality","user":{"login":"granthenke","id":1928566,"avatar_url":"https://avatars.githubusercontent.com/u/1928566?v=3","gravatar_id":"","url":"https://api.github.com/users/granthenke","html_url":"https://github.com/granthenke","followers_url":"https://api.github.com/users/granthenke/followers","following_url":"https://api.github.com/users/granthenke/following{/other_user}","gists_url":"https://api.github.com/users/granthenke/gists{/gist_id}","starred_url":"https://api.github.com/users/granthenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granthenke/subscriptions","organizations_url":"https://api.github.com/users/granthenke/orgs","repos_url":"https://api.github.com/users/granthenke/repos","events_url":"https://api.github.com/users/granthenke/events{/privacy}","received_events_url":"https://api.github.com/users/granthenke/received_events","type":"User","site_admin":false},"body":"Deprecates ErrorMapping.scala in core in favor or Errors.java in common. \r\nDuplicated exceptions in core are deprecated as well, to ensure the mapping is correct.","created_at":"2015-12-02T19:37:49Z","updated_at":"2016-01-04T17:47:38Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1656e7a608793ea8e5347130dd6ff8e2a057747c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/apache/kafka/pulls/616/commits","review_comments_url":"https://api.github.com/repos/apache/kafka/pulls/616/comments","review_comment_url":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/kafka/issues/616/comments","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/eba3b41309cf9f0436a0159dffa63fa51d89beb7","head":{"label":"granthenke:error-mapping","ref":"error-mapping","sha":"eba3b41309cf9f0436a0159dffa63fa51d89beb7","user":{"login":"granthenke","id":1928566,"avatar_url":"https://avatars.githubusercontent.com/u/1928566?v=3","gravatar_id":"","url":"https://api.github.com/users/granthenke","html_url":"https://github.com/granthenke","followers_url":"https://api.github.com/users/granthenke/followers","following_url":"https://api.github.com/users/granthenke/following{/other_user}","gists_url":"https://api.github.com/users/granthenke/gists{/gist_id}","starred_url":"https://api.github.com/users/granthenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granthenke/subscriptions","organizations_url":"https://api.github.com/users/granthenke/orgs","repos_url":"https://api.github.com/users/granthenke/repos","events_url":"https://api.github.com/users/granthenke/events{/privacy}","received_events_url":"https://api.github.com/users/granthenke/received_events","type":"User","site_admin":false},"repo":{"id":31473093,"name":"kafka","full_name":"granthenke/kafka","owner":{"login":"granthenke","id":1928566,"avatar_url":"https://avatars.githubusercontent.com/u/1928566?v=3","gravatar_id":"","url":"https://api.github.com/users/granthenke","html_url":"https://github.com/granthenke","followers_url":"https://api.github.com/users/granthenke/followers","following_url":"https://api.github.com/users/granthenke/following{/other_user}","gists_url":"https://api.github.com/users/granthenke/gists{/gist_id}","starred_url":"https://api.github.com/users/granthenke/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/granthenke/subscriptions","organizations_url":"https://api.github.com/users/granthenke/orgs","repos_url":"https://api.github.com/users/granthenke/repos","events_url":"https://api.github.com/users/granthenke/events{/privacy}","received_events_url":"https://api.github.com/users/granthenke/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/granthenke/kafka","description":"Mirror of Apache Kafka","fork":true,"url":"https://api.github.com/repos/granthenke/kafka","forks_url":"https://api.github.com/repos/granthenke/kafka/forks","keys_url":"https://api.github.com/repos/granthenke/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/granthenke/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/granthenke/kafka/teams","hooks_url":"https://api.github.com/repos/granthenke/kafka/hooks","issue_events_url":"https://api.github.com/repos/granthenke/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/granthenke/kafka/events","assignees_url":"https://api.github.com/repos/granthenke/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/granthenke/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/granthenke/kafka/tags","blobs_url":"https://api.github.com/repos/granthenke/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/granthenke/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/granthenke/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/granthenke/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/granthenke/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/granthenke/kafka/languages","stargazers_url":"https://api.github.com/repos/granthenke/kafka/stargazers","contributors_url":"https://api.github.com/repos/granthenke/kafka/contributors","subscribers_url":"https://api.github.com/repos/granthenke/kafka/subscribers","subscription_url":"https://api.github.com/repos/granthenke/kafka/subscription","commits_url":"https://api.github.com/repos/granthenke/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/granthenke/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/granthenke/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/granthenke/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/granthenke/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/granthenke/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/granthenke/kafka/merges","archive_url":"https://api.github.com/repos/granthenke/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/granthenke/kafka/downloads","issues_url":"https://api.github.com/repos/granthenke/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/granthenke/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/granthenke/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/granthenke/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/granthenke/kafka/labels{/name}","releases_url":"https://api.github.com/repos/granthenke/kafka/releases{/id}","created_at":"2015-02-28T19:08:22Z","updated_at":"2015-02-28T19:08:24Z","pushed_at":"2015-12-24T15:27:02Z","git_url":"git://github.com/granthenke/kafka.git","ssh_url":"git@github.com:granthenke/kafka.git","clone_url":"https://github.com/granthenke/kafka.git","svn_url":"https://github.com/granthenke/kafka","homepage":null,"size":26368,"stargazers_count":0,"watchers_count":0,"language":"Scala","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"trunk"}},"base":{"label":"apache:trunk","ref":"trunk","sha":"ea73356905ff4663d0d085c46b348fa4e9b9568d","user":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"repo":{"id":2211243,"name":"kafka","full_name":"apache/kafka","owner":{"login":"apache","id":47359,"avatar_url":"https://avatars.githubusercontent.com/u/47359?v=3","gravatar_id":"","url":"https://api.github.com/users/apache","html_url":"https://github.com/apache","followers_url":"https://api.github.com/users/apache/followers","following_url":"https://api.github.com/users/apache/following{/other_user}","gists_url":"https://api.github.com/users/apache/gists{/gist_id}","starred_url":"https://api.github.com/users/apache/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apache/subscriptions","organizations_url":"https://api.github.com/users/apache/orgs","repos_url":"https://api.github.com/users/apache/repos","events_url":"https://api.github.com/users/apache/events{/privacy}","received_events_url":"https://api.github.com/users/apache/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/apache/kafka","description":"Mirror of Apache Kafka","fork":false,"url":"https://api.github.com/repos/apache/kafka","forks_url":"https://api.github.com/repos/apache/kafka/forks","keys_url":"https://api.github.com/repos/apache/kafka/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/kafka/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/kafka/teams","hooks_url":"https://api.github.com/repos/apache/kafka/hooks","issue_events_url":"https://api.github.com/repos/apache/kafka/issues/events{/number}","events_url":"https://api.github.com/repos/apache/kafka/events","assignees_url":"https://api.github.com/repos/apache/kafka/assignees{/user}","branches_url":"https://api.github.com/repos/apache/kafka/branches{/branch}","tags_url":"https://api.github.com/repos/apache/kafka/tags","blobs_url":"https://api.github.com/repos/apache/kafka/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/kafka/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/kafka/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/kafka/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/kafka/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/kafka/languages","stargazers_url":"https://api.github.com/repos/apache/kafka/stargazers","contributors_url":"https://api.github.com/repos/apache/kafka/contributors","subscribers_url":"https://api.github.com/repos/apache/kafka/subscribers","subscription_url":"https://api.github.com/repos/apache/kafka/subscription","commits_url":"https://api.github.com/repos/apache/kafka/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/kafka/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/kafka/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/kafka/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/kafka/contents/{+path}","compare_url":"https://api.github.com/repos/apache/kafka/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/kafka/merges","archive_url":"https://api.github.com/repos/apache/kafka/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/kafka/downloads","issues_url":"https://api.github.com/repos/apache/kafka/issues{/number}","pulls_url":"https://api.github.com/repos/apache/kafka/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/kafka/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/kafka/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/kafka/labels{/name}","releases_url":"https://api.github.com/repos/apache/kafka/releases{/id}","created_at":"2011-08-15T18:06:16Z","updated_at":"2016-01-04T11:00:57Z","pushed_at":"2016-01-04T16:51:49Z","git_url":"git://github.com/apache/kafka.git","ssh_url":"git@github.com:apache/kafka.git","clone_url":"https://github.com/apache/kafka.git","svn_url":"https://github.com/apache/kafka","homepage":null,"size":32957,"stargazers_count":2435,"watchers_count":2435,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1442,"mirror_url":"git://git.apache.org/kafka.git","open_issues_count":127,"forks":1442,"open_issues":127,"watchers":2435,"default_branch":"trunk"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/kafka/pulls/616"},"html":{"href":"https://github.com/apache/kafka/pull/616"},"issue":{"href":"https://api.github.com/repos/apache/kafka/issues/616"},"comments":{"href":"https://api.github.com/repos/apache/kafka/issues/616/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/kafka/pulls/616/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/kafka/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/kafka/pulls/616/commits"},"statuses":{"href":"https://api.github.com/repos/apache/kafka/statuses/eba3b41309cf9f0436a0159dffa63fa51d89beb7"}}}}