{"action":"created","comment":{"url":"https://api.github.com/repos/apache/flink/pulls/comments/76815420","id":76815420,"diff_hunk":"@@ -0,0 +1,336 @@\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+\n+package org.apache.flink.runtime.rpc;\n+\n+import akka.dispatch.ExecutionContexts;\n+import akka.dispatch.Futures;\n+import akka.util.Timeout;\n+import org.apache.flink.api.java.tuple.Tuple2;\n+import org.apache.flink.runtime.util.DirectExecutorService;\n+import org.apache.flink.util.Preconditions;\n+import scala.concurrent.Await;\n+import scala.concurrent.ExecutionContext;\n+import scala.concurrent.Future;\n+import scala.concurrent.duration.FiniteDuration;\n+\n+import java.lang.annotation.Annotation;\n+import java.lang.reflect.InvocationHandler;\n+import java.lang.reflect.Method;\n+import java.lang.reflect.Proxy;\n+import java.util.BitSet;\n+import java.util.UUID;\n+import java.util.concurrent.Callable;\n+import java.util.concurrent.ConcurrentHashMap;\n+import java.util.concurrent.TimeUnit;\n+\n+\n+/**\n+ * An RPC Service implementation for testing. This RPC service directly executes all asynchronous calls one by one in the main thread.\n+ */\n+public class TestingSerialRpcService extends TestingRpcService {\n+\n+\tprivate final DirectExecutorService executorService;\n+\tprivate final ConcurrentHashMap<String, RpcGateway> registeredConnections;\n+\n+\tpublic TestingSerialRpcService() {\n+\t\texecutorService = new DirectExecutorService();\n+\t\tthis.registeredConnections = new ConcurrentHashMap<>();\n+\t}\n+\n+\t@Override\n+\tpublic void scheduleRunnable(final Runnable runnable, final long delay, final TimeUnit unit) {\n+\t\ttry {\n+\t\t\tunit.sleep(delay);\n+\t\t\trunnable.run();\n+\t\t} catch (Throwable e) {\n+\t\t\tthrow new RuntimeException(e);\n+\t\t}\n+\t}\n+\n+\t@Override\n+\tpublic ExecutionContext getExecutionContext() {\n+\t\treturn ExecutionContexts.fromExecutorService(executorService);\n+\t}\n+\n+\t@Override\n+\tpublic void stopService() {\n+\t\texecutorService.shutdown();\n+\t\tregisteredConnections.clear();\n+\t}\n+\n+\t@Override\n+\tpublic void stopServer(RpcGateway selfGateway) {\n+\n+\t}\n+\n+\t@Override\n+\tpublic <C extends RpcGateway, S extends RpcEndpoint<C>> C startServer(S rpcEndpoint) {\n+\t\tfinal String address = UUID.randomUUID().toString();\n+\n+\t\tInvocationHandler akkaInvocationHandler = new TestingSerialInvocationHandler(address, rpcEndpoint);\n+\t\tClassLoader classLoader = getClass().getClassLoader();\n+\n+\t\t@SuppressWarnings(\"unchecked\")\n+\t\tC self = (C) Proxy.newProxyInstance(\n+\t\t\tclassLoader,\n+\t\t\tnew Class<?>[]{\n+\t\t\t\trpcEndpoint.getSelfGatewayType(),\n+\t\t\t\tMainThreadExecutor.class,\n+\t\t\t\tStartStoppable.class,\n+\t\t\t\tRpcGateway.class},\n+\t\t\takkaInvocationHandler);\n+\n+\t\treturn self;\n+\t}\n+\n+\tprivate static class TestingSerialInvocationHandler<C extends RpcGateway, T extends RpcEndpoint<C>> implements InvocationHandler, RpcGateway, MainThreadExecutor, StartStoppable {\n+\n+\t\tprivate final T rpcEndpoint;\n+\n+\t\t/** default timeout for asks */\n+\t\tprivate final Timeout timeout;\n+\n+\t\tprivate final String address;\n+\n+\t\tprivate TestingSerialInvocationHandler(String address, T rpcEndpoint) {\n+\t\t\tthis(address, rpcEndpoint, new Timeout(new FiniteDuration(10, TimeUnit.SECONDS)));\n+\t\t}\n+\n+\t\tprivate TestingSerialInvocationHandler(String address, T rpcEndpoint, Timeout timeout) {\n+\t\t\tthis.rpcEndpoint = rpcEndpoint;\n+\t\t\tthis.timeout = timeout;\n+\t\t\tthis.address = address;\n+\t\t}\n+\n+\t\t@Override\n+\t\tpublic Object invoke(Object proxy, Method method, Object[] args) throws Throwable {\n+\t\t\tClass<?> declaringClass = method.getDeclaringClass();\n+\t\t\tif (declaringClass.equals(MainThreadExecutor.class) ||\n+\t\t\t\tdeclaringClass.equals(Object.class) || declaringClass.equals(StartStoppable.class) ||\n+\t\t\t\tdeclaringClass.equals(RpcGateway.class)) {\n+\t\t\t\treturn method.invoke(this, args);\n+\t\t\t} else {\n+\t\t\t\tfinal String methodName = method.getName();\n+\t\t\t\tClass<?>[] parameterTypes = method.getParameterTypes();\n+\t\t\t\tAnnotation[][] parameterAnnotations = method.getParameterAnnotations();\n+\t\t\t\tTimeout futureTimeout = extractRpcTimeout(parameterAnnotations, args, timeout);\n+\n+\t\t\t\tfinal Tuple2<Class<?>[], Object[]> filteredArguments = filterArguments(\n+\t\t\t\t\tparameterTypes,\n+\t\t\t\t\tparameterAnnotations,\n+\t\t\t\t\targs);\n+\n+\t\t\t\tClass<?> returnType = method.getReturnType();\n+\n+\t\t\t\tif (returnType.equals(Future.class)) {\n+\t\t\t\t\ttry {\n+\t\t\t\t\t\tObject result = handleRpcInvocationSync(methodName, filteredArguments.f0, filteredArguments.f1, futureTimeout);\n+\t\t\t\t\t\treturn Futures.successful(result);\n+\t\t\t\t\t} catch (Throwable e) {\n+\t\t\t\t\t\treturn Futures.failed(e);\n+\t\t\t\t\t}\n+\t\t\t\t} else {\n+\t\t\t\t\treturn handleRpcInvocationSync(methodName, filteredArguments.f0, filteredArguments.f1, futureTimeout);\n+\t\t\t\t}\n+\t\t\t}\n+\t\t}\n+\n+\t\t/**\n+\t\t * Handle rpc invocations by looking up the rpc method on the rpc endpoint and calling this\n+\t\t * method with the provided method arguments. If the method has a return value, it is returned\n+\t\t * to the sender of the call.\n+\t\t */\n+\t\tprivate Object handleRpcInvocationSync(final String methodName,\n+\t\t\tfinal Class<?>[] parameterTypes,\n+\t\t\tfinal Object[] args,\n+\t\t\tfinal Timeout futureTimeout) throws Exception {\n+\t\t\tfinal Method rpcMethod = lookupRpcMethod(methodName, parameterTypes);\n+\t\t\tObject result = rpcMethod.invoke(rpcEndpoint, args);\n+\n+\t\t\tif (result != null && result instanceof Future) {\n+\t\t\t\tFuture<?> future = (Future<?>) result;\n+\t\t\t\treturn Await.result(future, futureTimeout.duration());\n+\t\t\t} else {\n+\t\t\t\treturn result;\n+\t\t\t}\n+\t\t}\n+\n+\t\t@Override\n+\t\tpublic void runAsync(Runnable runnable) {\n+\t\t\trunnable.run();\n+\t\t}\n+\n+\t\t@Override\n+\t\tpublic <V> Future<V> callAsync(Callable<V> callable, Timeout callTimeout) {\n+\t\t\ttry {\n+\t\t\t\tTimeUnit.MILLISECONDS.sleep(callTimeout.duration().toMillis());\n+\t\t\t\treturn Futures.successful(callable.call());\n+\t\t\t} catch (Throwable e) {\n+\t\t\t\treturn Futures.failed(e);\n+\t\t\t}\n+\t\t}\n+\n+\t\t@Override\n+\t\tpublic void scheduleRunAsync(final Runnable runnable, final long delay) {\n+\t\t\ttry {\n+\t\t\t\tTimeUnit.MILLISECONDS.sleep(delay);\n+\t\t\t\trunnable.run();\n+\t\t\t} catch (Throwable e) {\n+\t\t\t\tthrow new RuntimeException(e);\n+\t\t\t}\n+\t\t}\n+\n+\t\t@Override\n+\t\tpublic void start() {","path":"flink-runtime/src/test/java/org/apache/flink/runtime/rpc/TestingSerialRpcService.java","position":200,"original_position":200,"commit_id":"5bdec107edb21f14323b8d77ff42e19d42ecee63","original_commit_id":"5bdec107edb21f14323b8d77ff42e19d42ecee63","user":{"login":"mxm","id":837221,"avatar_url":"https://avatars.githubusercontent.com/u/837221?v=3","gravatar_id":"","url":"https://api.github.com/users/mxm","html_url":"https://github.com/mxm","followers_url":"https://api.github.com/users/mxm/followers","following_url":"https://api.github.com/users/mxm/following{/other_user}","gists_url":"https://api.github.com/users/mxm/gists{/gist_id}","starred_url":"https://api.github.com/users/mxm/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mxm/subscriptions","organizations_url":"https://api.github.com/users/mxm/orgs","repos_url":"https://api.github.com/users/mxm/repos","events_url":"https://api.github.com/users/mxm/events{/privacy}","received_events_url":"https://api.github.com/users/mxm/received_events","type":"User","site_admin":false},"body":"No need to implement `StartStoppable` if you don't use the methods.","created_at":"2016-08-30T15:12:08Z","updated_at":"2016-08-30T15:12:08Z","html_url":"https://github.com/apache/flink/pull/2427#discussion_r76815420","pull_request_url":"https://api.github.com/repos/apache/flink/pulls/2427","_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/comments/76815420"},"html":{"href":"https://github.com/apache/flink/pull/2427#discussion_r76815420"},"pull_request":{"href":"https://api.github.com/repos/apache/flink/pulls/2427"}}},"pull_request":{"url":"https://api.github.com/repos/apache/flink/pulls/2427","id":82979551,"html_url":"https://github.com/apache/flink/pull/2427","diff_url":"https://github.com/apache/flink/pull/2427.diff","patch_url":"https://github.com/apache/flink/pull/2427.patch","issue_url":"https://api.github.com/repos/apache/flink/issues/2427","number":2427,"state":"open","locked":false,"title":"[FLINK-4516] [cluster management]leader election of resourcemanager","user":{"login":"beyond1920","id":1525333,"avatar_url":"https://avatars.githubusercontent.com/u/1525333?v=3","gravatar_id":"","url":"https://api.github.com/users/beyond1920","html_url":"https://github.com/beyond1920","followers_url":"https://api.github.com/users/beyond1920/followers","following_url":"https://api.github.com/users/beyond1920/following{/other_user}","gists_url":"https://api.github.com/users/beyond1920/gists{/gist_id}","starred_url":"https://api.github.com/users/beyond1920/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/beyond1920/subscriptions","organizations_url":"https://api.github.com/users/beyond1920/orgs","repos_url":"https://api.github.com/users/beyond1920/repos","events_url":"https://api.github.com/users/beyond1920/events{/privacy}","received_events_url":"https://api.github.com/users/beyond1920/received_events","type":"User","site_admin":false},"body":"This pull request is to implement resourceManager leader Election, which including:\r\n1. When a resourceManager is started, it starts the leadership election service first and take part in contending for leadership\r\n2. Every resourceManager contains a ResourceManagerLeaderContender, when it is granted leadership, it will start SlotManager and other main components. when it is revoked leadership, it will stop all its components and clear everything.\r\n\r\nMain difference are 3 points:\r\n1. Add ResourceManagerLeaderContender \r\n2. Add getResourceManagerLeaderElectionService method in HighAvailabilityServices, NonHaServices, TestingHighAvailabilityServices to get leadership election service for resourceManager\r\n3. Add a test for ResourceManager HA","created_at":"2016-08-27T06:26:46Z","updated_at":"2016-08-30T15:12:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7d1d50324043e56b9fa342fca4b9275d9070ac1e","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/apache/flink/pulls/2427/commits","review_comments_url":"https://api.github.com/repos/apache/flink/pulls/2427/comments","review_comment_url":"https://api.github.com/repos/apache/flink/pulls/comments{/number}","comments_url":"https://api.github.com/repos/apache/flink/issues/2427/comments","statuses_url":"https://api.github.com/repos/apache/flink/statuses/5bdec107edb21f14323b8d77ff42e19d42ecee63","head":{"label":"alibaba:jira-4516","ref":"jira-4516","sha":"5bdec107edb21f14323b8d77ff42e19d42ecee63","user":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"repo":{"id":65431038,"name":"flink","full_name":"alibaba/flink","owner":{"login":"alibaba","id":1961952,"avatar_url":"https://avatars.githubusercontent.com/u/1961952?v=3","gravatar_id":"","url":"https://api.github.com/users/alibaba","html_url":"https://github.com/alibaba","followers_url":"https://api.github.com/users/alibaba/followers","following_url":"https://api.github.com/users/alibaba/following{/other_user}","gists_url":"https://api.github.com/users/alibaba/gists{/gist_id}","starred_url":"https://api.github.com/users/alibaba/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/alibaba/subscriptions","organizations_url":"https://api.github.com/users/alibaba/orgs","repos_url":"https://api.github.com/users/alibaba/repos","events_url":"https://api.github.com/users/alibaba/events{/privacy}","received_events_url":"https://api.github.com/users/alibaba/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/alibaba/flink","description":"Mirror of Apache Flink","fork":true,"url":"https://api.github.com/repos/alibaba/flink","forks_url":"https://api.github.com/repos/alibaba/flink/forks","keys_url":"https://api.github.com/repos/alibaba/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/alibaba/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/alibaba/flink/teams","hooks_url":"https://api.github.com/repos/alibaba/flink/hooks","issue_events_url":"https://api.github.com/repos/alibaba/flink/issues/events{/number}","events_url":"https://api.github.com/repos/alibaba/flink/events","assignees_url":"https://api.github.com/repos/alibaba/flink/assignees{/user}","branches_url":"https://api.github.com/repos/alibaba/flink/branches{/branch}","tags_url":"https://api.github.com/repos/alibaba/flink/tags","blobs_url":"https://api.github.com/repos/alibaba/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/alibaba/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/alibaba/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/alibaba/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/alibaba/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/alibaba/flink/languages","stargazers_url":"https://api.github.com/repos/alibaba/flink/stargazers","contributors_url":"https://api.github.com/repos/alibaba/flink/contributors","subscribers_url":"https://api.github.com/repos/alibaba/flink/subscribers","subscription_url":"https://api.github.com/repos/alibaba/flink/subscription","commits_url":"https://api.github.com/repos/alibaba/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/alibaba/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/alibaba/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/alibaba/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/alibaba/flink/contents/{+path}","compare_url":"https://api.github.com/repos/alibaba/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/alibaba/flink/merges","archive_url":"https://api.github.com/repos/alibaba/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/alibaba/flink/downloads","issues_url":"https://api.github.com/repos/alibaba/flink/issues{/number}","pulls_url":"https://api.github.com/repos/alibaba/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/alibaba/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/alibaba/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/alibaba/flink/labels{/name}","releases_url":"https://api.github.com/repos/alibaba/flink/releases{/id}","deployments_url":"https://api.github.com/repos/alibaba/flink/deployments","created_at":"2016-08-11T02:17:59Z","updated_at":"2016-08-26T07:40:14Z","pushed_at":"2016-08-30T11:45:29Z","git_url":"git://github.com/alibaba/flink.git","ssh_url":"git@github.com:alibaba/flink.git","clone_url":"https://github.com/alibaba/flink.git","svn_url":"https://github.com/alibaba/flink","homepage":null,"size":91029,"stargazers_count":4,"watchers_count":4,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":0,"forks":3,"open_issues":0,"watchers":4,"default_branch":"master"}},"base":{"label":"apache:flip-6","ref":"flip-6","sha":"734297615a772568ccbe0f5857f5df5d46d3acd3","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":20587599,"name":"flink","full_name":"apache/flink","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/flink","description":"Mirror of Apache Flink","fork":false,"url":"https://api.github.com/repos/apache/flink","forks_url":"https://api.github.com/repos/apache/flink/forks","keys_url":"https://api.github.com/repos/apache/flink/keys{/key_id}","collaborators_url":"https://api.github.com/repos/apache/flink/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/apache/flink/teams","hooks_url":"https://api.github.com/repos/apache/flink/hooks","issue_events_url":"https://api.github.com/repos/apache/flink/issues/events{/number}","events_url":"https://api.github.com/repos/apache/flink/events","assignees_url":"https://api.github.com/repos/apache/flink/assignees{/user}","branches_url":"https://api.github.com/repos/apache/flink/branches{/branch}","tags_url":"https://api.github.com/repos/apache/flink/tags","blobs_url":"https://api.github.com/repos/apache/flink/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/apache/flink/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/apache/flink/git/refs{/sha}","trees_url":"https://api.github.com/repos/apache/flink/git/trees{/sha}","statuses_url":"https://api.github.com/repos/apache/flink/statuses/{sha}","languages_url":"https://api.github.com/repos/apache/flink/languages","stargazers_url":"https://api.github.com/repos/apache/flink/stargazers","contributors_url":"https://api.github.com/repos/apache/flink/contributors","subscribers_url":"https://api.github.com/repos/apache/flink/subscribers","subscription_url":"https://api.github.com/repos/apache/flink/subscription","commits_url":"https://api.github.com/repos/apache/flink/commits{/sha}","git_commits_url":"https://api.github.com/repos/apache/flink/git/commits{/sha}","comments_url":"https://api.github.com/repos/apache/flink/comments{/number}","issue_comment_url":"https://api.github.com/repos/apache/flink/issues/comments{/number}","contents_url":"https://api.github.com/repos/apache/flink/contents/{+path}","compare_url":"https://api.github.com/repos/apache/flink/compare/{base}...{head}","merges_url":"https://api.github.com/repos/apache/flink/merges","archive_url":"https://api.github.com/repos/apache/flink/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/apache/flink/downloads","issues_url":"https://api.github.com/repos/apache/flink/issues{/number}","pulls_url":"https://api.github.com/repos/apache/flink/pulls{/number}","milestones_url":"https://api.github.com/repos/apache/flink/milestones{/number}","notifications_url":"https://api.github.com/repos/apache/flink/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/apache/flink/labels{/name}","releases_url":"https://api.github.com/repos/apache/flink/releases{/id}","deployments_url":"https://api.github.com/repos/apache/flink/deployments","created_at":"2014-06-07T07:00:10Z","updated_at":"2016-08-30T13:05:55Z","pushed_at":"2016-08-30T14:58:02Z","git_url":"git://github.com/apache/flink.git","ssh_url":"git@github.com:apache/flink.git","clone_url":"https://github.com/apache/flink.git","svn_url":"https://github.com/apache/flink","homepage":null,"size":123125,"stargazers_count":1540,"watchers_count":1540,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":1019,"mirror_url":"git://git.apache.org/flink.git","open_issues_count":119,"forks":1019,"open_issues":119,"watchers":1540,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/apache/flink/pulls/2427"},"html":{"href":"https://github.com/apache/flink/pull/2427"},"issue":{"href":"https://api.github.com/repos/apache/flink/issues/2427"},"comments":{"href":"https://api.github.com/repos/apache/flink/issues/2427/comments"},"review_comments":{"href":"https://api.github.com/repos/apache/flink/pulls/2427/comments"},"review_comment":{"href":"https://api.github.com/repos/apache/flink/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/apache/flink/pulls/2427/commits"},"statuses":{"href":"https://api.github.com/repos/apache/flink/statuses/5bdec107edb21f14323b8d77ff42e19d42ecee63"}}}}
{"actor":{"display_login":"mxm"}}