{"action":"created","comment":{"url":"https://api.github.com/repos/apache/beam/pulls/comments/234724237","pull_request_review_id":176426452,"id":234724237,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIzNDcyNDIzNw==","diff_hunk":"@@ -58,7 +58,7 @@ public ProducerRecordCoder(Coder<K> keyCoder, Coder<V> valueCoder) {\n   @Override\n   public void encode(ProducerRecord<K, V> value, OutputStream outStream) throws IOException {\n     stringCoder.encode(value.topic(), outStream);\n-    intCoder.encode(value.partition() != null ? value.partition() : Integer.MAX_VALUE, outStream);\n+    intCoder.encode(value.partition() != null ? value.partition() : -1, outStream);","path":"sdks/java/io/kafka/src/main/java/org/apache/beam/sdk/io/kafka/ProducerRecordCoder.java","position":61,"original_position":5,"commit_id":"ea36cda5edd0c0e4ee7fc7398771ec332dd3177d","original_commit_id":"ea36cda5edd0c0e4ee7fc7398771ec332dd3177d","user":{"login":"rangadi","id":502522,"node_id":"MDQ6VXNlcjUwMjUyMg==","avatar_url":"https://avatars2.githubusercontent.com/u/502522?v=4","gravatar_id":"","url":"https://api.github.com/users/rangadi","html_url":"https://github.com/rangadi","followers_url":"https://api.github.com/users/rangadi/followers","following_url":"https://api.github.com/users/rangadi/following{/other_user}","gists_url":"https://api.github.com/users/rangadi/gists{/gist_id}","starred_url":"https://api.github.com/users/rangadi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rangadi/subscriptions","organizations_url":"https://api.github.com/users/rangadi/orgs","repos_url":"https://api.github.com/users/rangadi/repos","events_url":"https://api.github.com/users/rangadi/events{/privacy}","received_events_url":"https://api.github.com/users/rangadi/received_events","type":"User","site_admin":false},"body":"Your preference : either -1 or INT_MAX is fine with me.","created_at":"2018-11-19T18:06:47Z","updated_at":"2018-11-19T18:10:34Z","html_url":"https://github.com/apache/beam/pull/7052#discussion_r234724237","pull_request_url":"https://api.github.com/repos/apache/beam/pulls/7052","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/comments/234724237"},"html":{"href":"https://github.com/apache/beam/pull/7052#discussion_r234724237"},"pull_request":{"href":"https://api.github.com/repos/apache/beam/pulls/7052"}}},"pull_request":{"url":"https://api.github.com/repos/apache/beam/pulls/7052","id":231290473,"node_id":"MDExOlB1bGxSZXF1ZXN0MjMxMjkwNDcz","html_url":"https://github.com/apache/beam/pull/7052","diff_url":"https://github.com/apache/beam/pull/7052.diff","patch_url":"https://github.com/apache/beam/pull/7052.patch","issue_url":"https://api.github.com/repos/apache/beam/issues/7052","number":7052,"state":"open","locked":false,"title":"[BEAM-6063] KafkaIO: add writing support with ProducerRecord","user":{"login":"aromanenko-dev","id":33895511,"node_id":"MDQ6VXNlcjMzODk1NTEx","avatar_url":"https://avatars0.githubusercontent.com/u/33895511?v=4","gravatar_id":"","url":"https://api.github.com/users/aromanenko-dev","html_url":"https://github.com/aromanenko-dev","followers_url":"https://api.github.com/users/aromanenko-dev/followers","following_url":"https://api.github.com/users/aromanenko-dev/following{/other_user}","gists_url":"https://api.github.com/users/aromanenko-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/aromanenko-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aromanenko-dev/subscriptions","organizations_url":"https://api.github.com/users/aromanenko-dev/orgs","repos_url":"https://api.github.com/users/aromanenko-dev/repos","events_url":"https://api.github.com/users/aromanenko-dev/events{/privacy}","received_events_url":"https://api.github.com/users/aromanenko-dev/received_events","type":"User","site_admin":false},"body":"Added new transform `WriteRecords` based on Kafka `ProducerRecord`. API of old `Write` transform is kept as it was before but now it uses `WriteRecords` under the hood to write data. All internal functionality, which is not visible for user, has been changed to use `ProducerRecord` instead of `KV`.\r\n\r\n------------------------\r\n\r\nFollow this checklist to help us incorporate your contribution quickly and easily:\r\n\r\n - [x] Format the pull request title like `[BEAM-XXX] Fixes bug in ApproximateQuantiles`, where you replace `BEAM-XXX` with the appropriate JIRA issue, if applicable. This will automatically link the pull request to the issue.\r\n - [x] If this contribution is large, please file an Apache [Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf).\r\n\r\nIt will help us expedite review of your Pull Request if you tag someone (e.g. `@username`) to look at it.\r\n\r\nPost-Commit Tests Status (on master branch)\r\n------------------------------------------------------------------------------------------------\r\n\r\nLang | SDK | Apex | Dataflow | Flink | Gearpump | Samza | Spark\r\n--- | --- | --- | --- | --- | --- | --- | ---\r\nGo | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Go_GradleBuild/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Go_GradleBuild/lastCompletedBuild/) | --- | --- | --- | --- | --- | ---\r\nJava | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_GradleBuild/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_GradleBuild/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Apex_Gradle/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Dataflow_Gradle/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Flink_Gradle/lastCompletedBuild/) [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_PVR_Flink/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Gearpump_Gradle/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Samza_Gradle/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark_Gradle/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Java_ValidatesRunner_Spark_Gradle/lastCompletedBuild/)\r\nPython | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Python_Verify/lastCompletedBuild/) | --- | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Py_VR_Dataflow/lastCompletedBuild/) </br> [![Build Status](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Py_ValCont/lastCompletedBuild/) | [![Build Status](https://builds.apache.org/job/beam_PostCommit_Python_VR_Flink/lastCompletedBuild/badge/icon)](https://builds.apache.org/job/beam_PostCommit_Python_VR_Flink/lastCompletedBuild/) | --- | --- | ---\r\n\r\n\r\n\r\n\r\n","created_at":"2018-11-15T18:22:23Z","updated_at":"2018-11-19T18:10:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"48ae1d77289140fdb269f7805611a4de1d34de15","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/beam/pulls/7052/commits","review_comments_url":"https://api.github.com/repos/apache/beam/pulls/7052/comments","review_comment_url":"https://api.github.com/repos/apache/beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/beam/issues/7052/comments","statuses_url":"https://api.github.com/repos/apache/beam/statuses/ea36cda5edd0c0e4ee7fc7398771ec332dd3177d","head":{"label":"aromanenko-dev:BEAM-6063-ProducerRecords","ref":"BEAM-6063-ProducerRecords","sha":"ea36cda5edd0c0e4ee7fc7398771ec332dd3177d","user":{"login":"aromanenko-dev","id":33895511,"node_id":"MDQ6VXNlcjMzODk1NTEx","avatar_url":"https://avatars0.githubusercontent.com/u/33895511?v=4","gravatar_id":"","url":"https://api.github.com/users/aromanenko-dev","html_url":"https://github.com/aromanenko-dev","followers_url":"https://api.github.com/users/aromanenko-dev/followers","following_url":"https://api.github.com/users/aromanenko-dev/following{/other_user}","gists_url":"https://api.github.com/users/aromanenko-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/aromanenko-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aromanenko-dev/subscriptions","organizations_url":"https://api.github.com/users/aromanenko-dev/orgs","repos_url":"https://api.github.com/users/aromanenko-dev/repos","events_url":"https://api.github.com/users/aromanenko-dev/events{/privacy}","received_events_url":"https://api.github.com/users/aromanenko-dev/received_events","type":"User","site_admin":false},"repo":{"id":111895688,"node_id":"MDEwOlJlcG9zaXRvcnkxMTE4OTU2ODg=","name":"beam","full_name":"aromanenko-dev/beam","private":false,"owner":{"login":"aromanenko-dev","id":33895511,"node_id":"MDQ6VXNlcjMzODk1NTEx","avatar_url":"https://avatars0.githubusercontent.com/u/33895511?v=4","gravatar_id":"","url":"https://api.github.com/users/aromanenko-dev","html_url":"https://github.com/aromanenko-dev","followers_url":"https://api.github.com/users/aromanenko-dev/followers","following_url":"https://api.github.com/users/aromanenko-dev/following{/other_user}","gists_url":"https://api.github.com/users/aromanenko-dev/gists{/gist_id}","starred_url":"https://api.github.com/users/aromanenko-dev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aromanenko-dev/subscriptions","organizations_url":"https://api.github.com/users/aromanenko-dev/orgs","repos_url":"https://api.github.com/users/aromanenko-dev/repos","events_url":"https://api.github.com/users/aromanenko-dev/events{/privacy}","received_events_url":"https://api.github.com/users/aromanenko-dev/received_events","type":"User","site_admin":false},"html_url":"https://github.com/aromanenko-dev/beam","description":"Apache Beam","fork":true,"url":"https://api.github.com/repos/aromanenko-dev/beam","forks_url":"https://api.github.com/repos/aromanenko-dev/beam/forks","keys_url":"https://api.github.com/repos/aromanenko-dev/beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/aromanenko-dev/beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/aromanenko-dev/beam/teams","hooks_url":"https://api.github.com/repos/aromanenko-dev/beam/hooks","issue_events_url":"https://api.github.com/repos/aromanenko-dev/beam/issues/events{/number}","events_url":"https://api.github.com/repos/aromanenko-dev/beam/events","assignees_url":"https://api.github.com/repos/aromanenko-dev/beam/assignees{/user}","branches_url":"https://api.github.com/repos/aromanenko-dev/beam/branches{/branch}","tags_url":"https://api.github.com/repos/aromanenko-dev/beam/tags","blobs_url":"https://api.github.com/repos/aromanenko-dev/beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/aromanenko-dev/beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/aromanenko-dev/beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/aromanenko-dev/beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/aromanenko-dev/beam/statuses/{sha}","languages_url":"https://api.github.com/repos/aromanenko-dev/beam/languages","stargazers_url":"https://api.github.com/repos/aromanenko-dev/beam/stargazers","contributors_url":"https://api.github.com/repos/aromanenko-dev/beam/contributors","subscribers_url":"https://api.github.com/repos/aromanenko-dev/beam/subscribers","subscription_url":"https://api.github.com/repos/aromanenko-dev/beam/subscription","commits_url":"https://api.github.com/repos/aromanenko-dev/beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/aromanenko-dev/beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/aromanenko-dev/beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/aromanenko-dev/beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/aromanenko-dev/beam/contents/{+path}","compare_url":"https://api.github.com/repos/aromanenko-dev/beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/aromanenko-dev/beam/merges","archive_url":"https://api.github.com/repos/aromanenko-dev/beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/aromanenko-dev/beam/downloads","issues_url":"https://api.github.com/repos/aromanenko-dev/beam/issues{/number}","pulls_url":"https://api.github.com/repos/aromanenko-dev/beam/pulls{/number}","milestones_url":"https://api.github.com/repos/aromanenko-dev/beam/milestones{/number}","notifications_url":"https://api.github.com/repos/aromanenko-dev/beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/aromanenko-dev/beam/labels{/name}","releases_url":"https://api.github.com/repos/aromanenko-dev/beam/releases{/id}","deployments_url":"https://api.github.com/repos/aromanenko-dev/beam/deployments","created_at":"2017-11-24T08:41:54Z","updated_at":"2017-11-24T08:42:06Z","pushed_at":"2018-11-19T16:13:42Z","git_url":"git://github.com/aromanenko-dev/beam.git","ssh_url":"git@github.com:aromanenko-dev/beam.git","clone_url":"https://github.com/aromanenko-dev/beam.git","svn_url":"https://github.com/aromanenko-dev/beam","homepage":"","size":112120,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"67783b847593aa498a7030e229a1f6fa98740d57","user":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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":50904245,"node_id":"MDEwOlJlcG9zaXRvcnk1MDkwNDI0NQ==","name":"beam","full_name":"apache/beam","private":false,"owner":{"login":"apache","id":47359,"node_id":"MDEyOk9yZ2FuaXphdGlvbjQ3MzU5","avatar_url":"https://avatars0.githubusercontent.com/u/47359?v=4","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},"html_url":"https://github.com/apache/beam","description":"Apache Beam","fork":false,"url":"https://api.github.com/repos/apache/beam","forks_url":"https://api.github.com/repos/apache/beam/forks","keys_url":"https://api.github.com/repos/apache/beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/beam/teams","hooks_url":"https://api.github.com/repos/apache/beam/hooks","issue_events_url":"https://api.github.com/repos/apache/beam/issues/events{/number}","events_url":"https://api.github.com/repos/apache/beam/events","assignees_url":"https://api.github.com/repos/apache/beam/assignees{/user}","branches_url":"https://api.github.com/repos/apache/beam/branches{/branch}","tags_url":"https://api.github.com/repos/apache/beam/tags","blobs_url":"https://api.github.com/repos/apache/beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/beam/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/beam/languages","stargazers_url":"https://api.github.com/repos/apache/beam/stargazers","contributors_url":"https://api.github.com/repos/apache/beam/contributors","subscribers_url":"https://api.github.com/repos/apache/beam/subscribers","subscription_url":"https://api.github.com/repos/apache/beam/subscription","commits_url":"https://api.github.com/repos/apache/beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/beam/contents/{+path}","compare_url":"https://api.github.com/repos/apache/beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/beam/merges","archive_url":"https://api.github.com/repos/apache/beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/beam/downloads","issues_url":"https://api.github.com/repos/apache/beam/issues{/number}","pulls_url":"https://api.github.com/repos/apache/beam/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/beam/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/beam/labels{/name}","releases_url":"https://api.github.com/repos/apache/beam/releases{/id}","deployments_url":"https://api.github.com/repos/apache/beam/deployments","created_at":"2016-02-02T08:00:06Z","updated_at":"2018-11-19T16:04:38Z","pushed_at":"2018-11-19T16:41:10Z","git_url":"git://github.com/apache/beam.git","ssh_url":"git@github.com:apache/beam.git","clone_url":"https://github.com/apache/beam.git","svn_url":"https://github.com/apache/beam","homepage":"https://beam.apache.org","size":112539,"stargazers_count":2331,"watchers_count":2331,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1459,"mirror_url":null,"archived":false,"open_issues_count":79,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0","node_id":"MDc6TGljZW5zZTI="},"forks":1459,"open_issues":79,"watchers":2331,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/7052"},"html":{"href":"https://github.com/apache/beam/pull/7052"},"issue":{"href":"https://api.github.com/repos/apache/beam/issues/7052"},"comments":{"href":"https://api.github.com/repos/apache/beam/issues/7052/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/beam/pulls/7052/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/beam/pulls/7052/commits"},"statuses":{"href":"https://api.github.com/repos/apache/beam/statuses/ea36cda5edd0c0e4ee7fc7398771ec332dd3177d"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"rangadi"}}