{"action":"created","comment":{"url":"https://api.github.com/repos/apache/beam/pulls/comments/183195286","pull_request_review_id":114156549,"id":183195286,"diff_hunk":"@@ -0,0 +1,159 @@\n+/*\n+ * Licensed to the Apache Software Foundation (ASF) under one\n+ * or more contributor license agreements.  See the NOTICE file\n+ * distributed with this work for additional information\n+ * regarding copyright ownership.  The ASF licenses this file\n+ * to you under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance\n+ * with 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.beam.runners.reference.testing;\n+\n+import static com.google.common.base.Preconditions.checkArgument;\n+import static com.google.common.base.Preconditions.checkState;\n+\n+import com.google.common.collect.Sets;\n+import com.google.common.io.BaseEncoding;\n+import io.grpc.Status;\n+import io.grpc.stub.StreamObserver;\n+import java.security.MessageDigest;\n+import java.util.Set;\n+import java.util.function.Consumer;\n+import javax.annotation.concurrent.GuardedBy;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactApi.ArtifactMetadata;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactApi.CommitManifestRequest;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactApi.CommitManifestResponse;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactApi.PutArtifactRequest;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactApi.PutArtifactResponse;\n+import org.apache.beam.model.jobmanagement.v1.ArtifactStagingServiceGrpc.ArtifactStagingServiceImplBase;\n+import org.slf4j.Logger;\n+import org.slf4j.LoggerFactory;\n+\n+/** A StagingService for tests. Only stores artifact metadata. */","path":"runners/reference/java/src/main/java/org/apache/beam/runners/reference/testing/InMemoryArtifactService.java","position":40,"original_position":40,"commit_id":"50964d8f2b5f83a011feaf333504545b20f8e8b4","original_commit_id":"a16a978c74d440d81ca78b3c44be72eae312ef74","user":{"login":"bsidhom","id":1359900,"avatar_url":"https://avatars3.githubusercontent.com/u/1359900?v=4","gravatar_id":"","url":"https://api.github.com/users/bsidhom","html_url":"https://github.com/bsidhom","followers_url":"https://api.github.com/users/bsidhom/followers","following_url":"https://api.github.com/users/bsidhom/following{/other_user}","gists_url":"https://api.github.com/users/bsidhom/gists{/gist_id}","starred_url":"https://api.github.com/users/bsidhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsidhom/subscriptions","organizations_url":"https://api.github.com/users/bsidhom/orgs","repos_url":"https://api.github.com/users/bsidhom/repos","events_url":"https://api.github.com/users/bsidhom/events{/privacy}","received_events_url":"https://api.github.com/users/bsidhom/received_events","type":"User","site_admin":false},"body":"Wow. I guess IntelliJ failed me. 😢 ","created_at":"2018-04-21T01:07:33Z","updated_at":"2018-04-21T01:44:23Z","html_url":"https://github.com/apache/beam/pull/5150#discussion_r183195286","pull_request_url":"https://api.github.com/repos/apache/beam/pulls/5150","author_association":"CONTRIBUTOR","_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/comments/183195286"},"html":{"href":"https://github.com/apache/beam/pull/5150#discussion_r183195286"},"pull_request":{"href":"https://api.github.com/repos/apache/beam/pulls/5150"}},"in_reply_to_id":182630027},"pull_request":{"url":"https://api.github.com/repos/apache/beam/pulls/5150","id":182020930,"html_url":"https://github.com/apache/beam/pull/5150","diff_url":"https://github.com/apache/beam/pull/5150.diff","patch_url":"https://github.com/apache/beam/pull/5150.patch","issue_url":"https://api.github.com/repos/apache/beam/issues/5150","number":5150,"state":"open","locked":false,"title":" [BEAM-4071] Add Portable Runner Job API shim","user":{"login":"bsidhom","id":1359900,"avatar_url":"https://avatars3.githubusercontent.com/u/1359900?v=4","gravatar_id":"","url":"https://api.github.com/users/bsidhom","html_url":"https://github.com/bsidhom","followers_url":"https://api.github.com/users/bsidhom/followers","following_url":"https://api.github.com/users/bsidhom/following{/other_user}","gists_url":"https://api.github.com/users/bsidhom/gists{/gist_id}","starred_url":"https://api.github.com/users/bsidhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsidhom/subscriptions","organizations_url":"https://api.github.com/users/bsidhom/orgs","repos_url":"https://api.github.com/users/bsidhom/repos","events_url":"https://api.github.com/users/bsidhom/events{/privacy}","received_events_url":"https://api.github.com/users/bsidhom/received_events","type":"User","site_admin":false},"body":"This runner allows clients of the Java SDK to run against portable an external Job Service with a provided endpoint.\r\n\r\n------------------------\r\n\r\nFollow this checklist to help us incorporate your contribution quickly and easily:\r\n\r\n - [x] Make sure there is a [JIRA issue](https://issues.apache.org/jira/projects/BEAM/issues/) filed for the change (usually before you start working on it).  Trivial changes like typos do not require a JIRA issue.  Your pull request should address just this issue, without pulling in other changes.\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.\r\n - [x] Write a pull request description that is detailed enough to understand:\r\n   - [ ] What the pull request does\r\n   - [ ] Why it does it\r\n   - [ ] How it does it\r\n   - [ ] Why this approach\r\n - [x] Each commit in the pull request should have a meaningful subject line and body.\r\n - [x] Run `mvn clean verify` to make sure basic checks pass. A more thorough check will be performed on your pull request automatically.\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\n","created_at":"2018-04-17T00:18:34Z","updated_at":"2018-04-21T01:44:23Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c21be304d4ce2c4ff944ba0303e0475c4d6d5357","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/beam/pulls/5150/commits","review_comments_url":"https://api.github.com/repos/apache/beam/pulls/5150/comments","review_comment_url":"https://api.github.com/repos/apache/beam/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/beam/issues/5150/comments","statuses_url":"https://api.github.com/repos/apache/beam/statuses/50964d8f2b5f83a011feaf333504545b20f8e8b4","head":{"label":"bsidhom:portable-runner-shim","ref":"portable-runner-shim","sha":"50964d8f2b5f83a011feaf333504545b20f8e8b4","user":{"login":"bsidhom","id":1359900,"avatar_url":"https://avatars3.githubusercontent.com/u/1359900?v=4","gravatar_id":"","url":"https://api.github.com/users/bsidhom","html_url":"https://github.com/bsidhom","followers_url":"https://api.github.com/users/bsidhom/followers","following_url":"https://api.github.com/users/bsidhom/following{/other_user}","gists_url":"https://api.github.com/users/bsidhom/gists{/gist_id}","starred_url":"https://api.github.com/users/bsidhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsidhom/subscriptions","organizations_url":"https://api.github.com/users/bsidhom/orgs","repos_url":"https://api.github.com/users/bsidhom/repos","events_url":"https://api.github.com/users/bsidhom/events{/privacy}","received_events_url":"https://api.github.com/users/bsidhom/received_events","type":"User","site_admin":false},"repo":{"id":110900797,"name":"beam","full_name":"bsidhom/beam","owner":{"login":"bsidhom","id":1359900,"avatar_url":"https://avatars3.githubusercontent.com/u/1359900?v=4","gravatar_id":"","url":"https://api.github.com/users/bsidhom","html_url":"https://github.com/bsidhom","followers_url":"https://api.github.com/users/bsidhom/followers","following_url":"https://api.github.com/users/bsidhom/following{/other_user}","gists_url":"https://api.github.com/users/bsidhom/gists{/gist_id}","starred_url":"https://api.github.com/users/bsidhom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bsidhom/subscriptions","organizations_url":"https://api.github.com/users/bsidhom/orgs","repos_url":"https://api.github.com/users/bsidhom/repos","events_url":"https://api.github.com/users/bsidhom/events{/privacy}","received_events_url":"https://api.github.com/users/bsidhom/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bsidhom/beam","description":"Mirror of Apache Beam","fork":true,"url":"https://api.github.com/repos/bsidhom/beam","forks_url":"https://api.github.com/repos/bsidhom/beam/forks","keys_url":"https://api.github.com/repos/bsidhom/beam/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bsidhom/beam/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bsidhom/beam/teams","hooks_url":"https://api.github.com/repos/bsidhom/beam/hooks","issue_events_url":"https://api.github.com/repos/bsidhom/beam/issues/events{/number}","events_url":"https://api.github.com/repos/bsidhom/beam/events","assignees_url":"https://api.github.com/repos/bsidhom/beam/assignees{/user}","branches_url":"https://api.github.com/repos/bsidhom/beam/branches{/branch}","tags_url":"https://api.github.com/repos/bsidhom/beam/tags","blobs_url":"https://api.github.com/repos/bsidhom/beam/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bsidhom/beam/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bsidhom/beam/git/refs{/sha}","trees_url":"https://api.github.com/repos/bsidhom/beam/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bsidhom/beam/statuses/{sha}","languages_url":"https://api.github.com/repos/bsidhom/beam/languages","stargazers_url":"https://api.github.com/repos/bsidhom/beam/stargazers","contributors_url":"https://api.github.com/repos/bsidhom/beam/contributors","subscribers_url":"https://api.github.com/repos/bsidhom/beam/subscribers","subscription_url":"https://api.github.com/repos/bsidhom/beam/subscription","commits_url":"https://api.github.com/repos/bsidhom/beam/commits{/sha}","git_commits_url":"https://api.github.com/repos/bsidhom/beam/git/commits{/sha}","comments_url":"https://api.github.com/repos/bsidhom/beam/comments{/number}","issue_comment_url":"https://api.github.com/repos/bsidhom/beam/issues/comments{/number}","contents_url":"https://api.github.com/repos/bsidhom/beam/contents/{+path}","compare_url":"https://api.github.com/repos/bsidhom/beam/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bsidhom/beam/merges","archive_url":"https://api.github.com/repos/bsidhom/beam/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bsidhom/beam/downloads","issues_url":"https://api.github.com/repos/bsidhom/beam/issues{/number}","pulls_url":"https://api.github.com/repos/bsidhom/beam/pulls{/number}","milestones_url":"https://api.github.com/repos/bsidhom/beam/milestones{/number}","notifications_url":"https://api.github.com/repos/bsidhom/beam/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bsidhom/beam/labels{/name}","releases_url":"https://api.github.com/repos/bsidhom/beam/releases{/id}","deployments_url":"https://api.github.com/repos/bsidhom/beam/deployments","created_at":"2017-11-16T00:00:26Z","updated_at":"2018-04-19T18:31:44Z","pushed_at":"2018-04-21T00:36:52Z","git_url":"git://github.com/bsidhom/beam.git","ssh_url":"git@github.com:bsidhom/beam.git","clone_url":"https://github.com/bsidhom/beam.git","svn_url":"https://github.com/bsidhom/beam","homepage":"","size":58379,"stargazers_count":1,"watchers_count":1,"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":1,"license":null,"forks":0,"open_issues":1,"watchers":1,"default_branch":"master"}},"base":{"label":"apache:master","ref":"master","sha":"3cdecd0e3e28dd39990d7d1dea8931e871a6ba62","user":{"login":"apache","id":47359,"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,"name":"beam","full_name":"apache/beam","owner":{"login":"apache","id":47359,"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},"private":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-04-20T23:33:27Z","pushed_at":"2018-04-21T01:15:01Z","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":"","size":57163,"stargazers_count":1822,"watchers_count":1822,"language":"Java","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1112,"mirror_url":null,"archived":false,"open_issues_count":122,"license":{"key":"apache-2.0","name":"Apache License 2.0","spdx_id":"Apache-2.0","url":"https://api.github.com/licenses/apache-2.0"},"forks":1112,"open_issues":122,"watchers":1822,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/beam/pulls/5150"},"html":{"href":"https://github.com/apache/beam/pull/5150"},"issue":{"href":"https://api.github.com/repos/apache/beam/issues/5150"},"comments":{"href":"https://api.github.com/repos/apache/beam/issues/5150/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/beam/pulls/5150/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/beam/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/beam/pulls/5150/commits"},"statuses":{"href":"https://api.github.com/repos/apache/beam/statuses/50964d8f2b5f83a011feaf333504545b20f8e8b4"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"bsidhom"}}