{"action":"created","comment":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments/195918693","pull_request_review_id":129379399,"id":195918693,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDE5NTkxODY5Mw==","diff_hunk":"@@ -13,31 +13,34 @@\n // limitations under the License.\n \n #include \"paddle/fluid/operators/detail/brpc_server.h\"\n+#include \"paddle/fluid/operators/detail/brpc_sendrecvop_utils.h\"\n+#include \"paddle/fluid/operators/detail/brpc_variable_response.h\"\n #include \"paddle/fluid/operators/detail/request_handler.h\"\n \n namespace sendrecv {\n \n-typedef std::unordered_map<std::string,\n-                           paddle::operators::detail::RequestHandler*>\n-    HandlerMap;\n+namespace detail = paddle::operators::detail;\n+\n+typedef std::unordered_map<std::string, detail::RequestHandler*> HandlerMap;\n \n class BRPCServiceImpl : public SendRecvService {\n  public:\n   explicit BRPCServiceImpl(const HandlerMap& rpc_call_map)\n       : request_send_h_(nullptr),\n         request_get_h_(nullptr),\n         request_prefetch_h_(nullptr) {\n-    auto it = rpc_call_map.find(paddle::operators::detail::kRequestSend);\n+    VLOG(3) << \"BRPCServiceImpl size: \" << rpc_call_map.size();\n+    auto it = rpc_call_map.find(detail::kRequestSend);","path":"paddle/fluid/operators/detail/brpc_server.cc","position":25,"original_position":25,"commit_id":"8780c08961564c8af3d42268cbd77170d23b9ba7","original_commit_id":"8780c08961564c8af3d42268cbd77170d23b9ba7","user":{"login":"Tuvie","id":5780312,"node_id":"MDQ6VXNlcjU3ODAzMTI=","avatar_url":"https://avatars0.githubusercontent.com/u/5780312?v=4","gravatar_id":"","url":"https://api.github.com/users/Tuvie","html_url":"https://github.com/Tuvie","followers_url":"https://api.github.com/users/Tuvie/followers","following_url":"https://api.github.com/users/Tuvie/following{/other_user}","gists_url":"https://api.github.com/users/Tuvie/gists{/gist_id}","starred_url":"https://api.github.com/users/Tuvie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tuvie/subscriptions","organizations_url":"https://api.github.com/users/Tuvie/orgs","repos_url":"https://api.github.com/users/Tuvie/repos","events_url":"https://api.github.com/users/Tuvie/events{/privacy}","received_events_url":"https://api.github.com/users/Tuvie/received_events","type":"User","site_admin":false},"body":"For each service you define in the \"proto\" file, you can add more than one method. Please refer to https://github.com/Tuvie/brpc/blob/master/example/http_c%2B%2B/http.proto","created_at":"2018-06-17T05:32:08Z","updated_at":"2018-06-17T05:32:08Z","html_url":"https://github.com/PaddlePaddle/Paddle/pull/11430#discussion_r195918693","pull_request_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments/195918693"},"html":{"href":"https://github.com/PaddlePaddle/Paddle/pull/11430#discussion_r195918693"},"pull_request":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430"}},"in_reply_to_id":195731875},"pull_request":{"url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430","id":194487798,"node_id":"MDExOlB1bGxSZXF1ZXN0MTk0NDg3Nzk4","html_url":"https://github.com/PaddlePaddle/Paddle/pull/11430","diff_url":"https://github.com/PaddlePaddle/Paddle/pull/11430.diff","patch_url":"https://github.com/PaddlePaddle/Paddle/pull/11430.patch","issue_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/11430","number":11430,"state":"open","locked":false,"title":"Add brpc serialization support.","user":{"login":"gongweibao","id":10721757,"node_id":"MDQ6VXNlcjEwNzIxNzU3","avatar_url":"https://avatars3.githubusercontent.com/u/10721757?v=4","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"body":"Fix part of https://github.com/PaddlePaddle/Paddle/issues/10804","created_at":"2018-06-13T06:59:37Z","updated_at":"2018-06-17T05:32:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"2036a08960592f8168b2770f1249223aeecf365b","assignee":null,"assignees":[],"requested_reviewers":[{"login":"Yancey1989","id":1426912,"node_id":"MDQ6VXNlcjE0MjY5MTI=","avatar_url":"https://avatars2.githubusercontent.com/u/1426912?v=4","gravatar_id":"","url":"https://api.github.com/users/Yancey1989","html_url":"https://github.com/Yancey1989","followers_url":"https://api.github.com/users/Yancey1989/followers","following_url":"https://api.github.com/users/Yancey1989/following{/other_user}","gists_url":"https://api.github.com/users/Yancey1989/gists{/gist_id}","starred_url":"https://api.github.com/users/Yancey1989/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Yancey1989/subscriptions","organizations_url":"https://api.github.com/users/Yancey1989/orgs","repos_url":"https://api.github.com/users/Yancey1989/repos","events_url":"https://api.github.com/users/Yancey1989/events{/privacy}","received_events_url":"https://api.github.com/users/Yancey1989/received_events","type":"User","site_admin":false},{"login":"panyx0718","id":2887803,"node_id":"MDQ6VXNlcjI4ODc4MDM=","avatar_url":"https://avatars0.githubusercontent.com/u/2887803?v=4","gravatar_id":"","url":"https://api.github.com/users/panyx0718","html_url":"https://github.com/panyx0718","followers_url":"https://api.github.com/users/panyx0718/followers","following_url":"https://api.github.com/users/panyx0718/following{/other_user}","gists_url":"https://api.github.com/users/panyx0718/gists{/gist_id}","starred_url":"https://api.github.com/users/panyx0718/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/panyx0718/subscriptions","organizations_url":"https://api.github.com/users/panyx0718/orgs","repos_url":"https://api.github.com/users/panyx0718/repos","events_url":"https://api.github.com/users/panyx0718/events{/privacy}","received_events_url":"https://api.github.com/users/panyx0718/received_events","type":"User","site_admin":false},{"login":"typhoonzero","id":13348433,"node_id":"MDQ6VXNlcjEzMzQ4NDMz","avatar_url":"https://avatars1.githubusercontent.com/u/13348433?v=4","gravatar_id":"","url":"https://api.github.com/users/typhoonzero","html_url":"https://github.com/typhoonzero","followers_url":"https://api.github.com/users/typhoonzero/followers","following_url":"https://api.github.com/users/typhoonzero/following{/other_user}","gists_url":"https://api.github.com/users/typhoonzero/gists{/gist_id}","starred_url":"https://api.github.com/users/typhoonzero/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/typhoonzero/subscriptions","organizations_url":"https://api.github.com/users/typhoonzero/orgs","repos_url":"https://api.github.com/users/typhoonzero/repos","events_url":"https://api.github.com/users/typhoonzero/events{/privacy}","received_events_url":"https://api.github.com/users/typhoonzero/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430/commits","review_comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430/comments","review_comment_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments{/number}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/11430/comments","statuses_url":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/8780c08961564c8af3d42268cbd77170d23b9ba7","head":{"label":"gongweibao:brpcserial","ref":"brpcserial","sha":"8780c08961564c8af3d42268cbd77170d23b9ba7","user":{"login":"gongweibao","id":10721757,"node_id":"MDQ6VXNlcjEwNzIxNzU3","avatar_url":"https://avatars3.githubusercontent.com/u/10721757?v=4","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"repo":{"id":82279237,"node_id":"MDEwOlJlcG9zaXRvcnk4MjI3OTIzNw==","name":"Paddle","full_name":"gongweibao/Paddle","owner":{"login":"gongweibao","id":10721757,"node_id":"MDQ6VXNlcjEwNzIxNzU3","avatar_url":"https://avatars3.githubusercontent.com/u/10721757?v=4","gravatar_id":"","url":"https://api.github.com/users/gongweibao","html_url":"https://github.com/gongweibao","followers_url":"https://api.github.com/users/gongweibao/followers","following_url":"https://api.github.com/users/gongweibao/following{/other_user}","gists_url":"https://api.github.com/users/gongweibao/gists{/gist_id}","starred_url":"https://api.github.com/users/gongweibao/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gongweibao/subscriptions","organizations_url":"https://api.github.com/users/gongweibao/orgs","repos_url":"https://api.github.com/users/gongweibao/repos","events_url":"https://api.github.com/users/gongweibao/events{/privacy}","received_events_url":"https://api.github.com/users/gongweibao/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/gongweibao/Paddle","description":"PArallel Distributed Deep LEarning","fork":true,"url":"https://api.github.com/repos/gongweibao/Paddle","forks_url":"https://api.github.com/repos/gongweibao/Paddle/forks","keys_url":"https://api.github.com/repos/gongweibao/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/gongweibao/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/gongweibao/Paddle/teams","hooks_url":"https://api.github.com/repos/gongweibao/Paddle/hooks","issue_events_url":"https://api.github.com/repos/gongweibao/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/gongweibao/Paddle/events","assignees_url":"https://api.github.com/repos/gongweibao/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/gongweibao/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/gongweibao/Paddle/tags","blobs_url":"https://api.github.com/repos/gongweibao/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/gongweibao/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/gongweibao/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/gongweibao/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/gongweibao/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/gongweibao/Paddle/languages","stargazers_url":"https://api.github.com/repos/gongweibao/Paddle/stargazers","contributors_url":"https://api.github.com/repos/gongweibao/Paddle/contributors","subscribers_url":"https://api.github.com/repos/gongweibao/Paddle/subscribers","subscription_url":"https://api.github.com/repos/gongweibao/Paddle/subscription","commits_url":"https://api.github.com/repos/gongweibao/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/gongweibao/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/gongweibao/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/gongweibao/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/gongweibao/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/gongweibao/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/gongweibao/Paddle/merges","archive_url":"https://api.github.com/repos/gongweibao/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/gongweibao/Paddle/downloads","issues_url":"https://api.github.com/repos/gongweibao/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/gongweibao/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/gongweibao/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/gongweibao/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/gongweibao/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/gongweibao/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/gongweibao/Paddle/deployments","created_at":"2017-02-17T09:16:16Z","updated_at":"2018-05-30T02:55:18Z","pushed_at":"2018-06-17T02:58:22Z","git_url":"git://github.com/gongweibao/Paddle.git","ssh_url":"git@github.com:gongweibao/Paddle.git","clone_url":"https://github.com/gongweibao/Paddle.git","svn_url":"https://github.com/gongweibao/Paddle","homepage":"http://www.paddlepaddle.org/","size":67783,"stargazers_count":1,"watchers_count":1,"language":"C++","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"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":1,"default_branch":"develop"}},"base":{"label":"PaddlePaddle:develop","ref":"develop","sha":"8f266e202236920d1d87ea49bf6b992115928bac","user":{"login":"PaddlePaddle","id":23534030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0MDMw","avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"repo":{"id":65711522,"node_id":"MDEwOlJlcG9zaXRvcnk2NTcxMTUyMg==","name":"Paddle","full_name":"PaddlePaddle/Paddle","owner":{"login":"PaddlePaddle","id":23534030,"node_id":"MDEyOk9yZ2FuaXphdGlvbjIzNTM0MDMw","avatar_url":"https://avatars3.githubusercontent.com/u/23534030?v=4","gravatar_id":"","url":"https://api.github.com/users/PaddlePaddle","html_url":"https://github.com/PaddlePaddle","followers_url":"https://api.github.com/users/PaddlePaddle/followers","following_url":"https://api.github.com/users/PaddlePaddle/following{/other_user}","gists_url":"https://api.github.com/users/PaddlePaddle/gists{/gist_id}","starred_url":"https://api.github.com/users/PaddlePaddle/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/PaddlePaddle/subscriptions","organizations_url":"https://api.github.com/users/PaddlePaddle/orgs","repos_url":"https://api.github.com/users/PaddlePaddle/repos","events_url":"https://api.github.com/users/PaddlePaddle/events{/privacy}","received_events_url":"https://api.github.com/users/PaddlePaddle/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/PaddlePaddle/Paddle","description":"PArallel Distributed Deep LEarning","fork":false,"url":"https://api.github.com/repos/PaddlePaddle/Paddle","forks_url":"https://api.github.com/repos/PaddlePaddle/Paddle/forks","keys_url":"https://api.github.com/repos/PaddlePaddle/Paddle/keys{/key_id}","collaborators_url":"https://api.github.com/repos/PaddlePaddle/Paddle/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/PaddlePaddle/Paddle/teams","hooks_url":"https://api.github.com/repos/PaddlePaddle/Paddle/hooks","issue_events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/events{/number}","events_url":"https://api.github.com/repos/PaddlePaddle/Paddle/events","assignees_url":"https://api.github.com/repos/PaddlePaddle/Paddle/assignees{/user}","branches_url":"https://api.github.com/repos/PaddlePaddle/Paddle/branches{/branch}","tags_url":"https://api.github.com/repos/PaddlePaddle/Paddle/tags","blobs_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/refs{/sha}","trees_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/trees{/sha}","statuses_url":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/{sha}","languages_url":"https://api.github.com/repos/PaddlePaddle/Paddle/languages","stargazers_url":"https://api.github.com/repos/PaddlePaddle/Paddle/stargazers","contributors_url":"https://api.github.com/repos/PaddlePaddle/Paddle/contributors","subscribers_url":"https://api.github.com/repos/PaddlePaddle/Paddle/subscribers","subscription_url":"https://api.github.com/repos/PaddlePaddle/Paddle/subscription","commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/commits{/sha}","git_commits_url":"https://api.github.com/repos/PaddlePaddle/Paddle/git/commits{/sha}","comments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/comments{/number}","issue_comment_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/comments{/number}","contents_url":"https://api.github.com/repos/PaddlePaddle/Paddle/contents/{+path}","compare_url":"https://api.github.com/repos/PaddlePaddle/Paddle/compare/{base}...{head}","merges_url":"https://api.github.com/repos/PaddlePaddle/Paddle/merges","archive_url":"https://api.github.com/repos/PaddlePaddle/Paddle/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/PaddlePaddle/Paddle/downloads","issues_url":"https://api.github.com/repos/PaddlePaddle/Paddle/issues{/number}","pulls_url":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls{/number}","milestones_url":"https://api.github.com/repos/PaddlePaddle/Paddle/milestones{/number}","notifications_url":"https://api.github.com/repos/PaddlePaddle/Paddle/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/PaddlePaddle/Paddle/labels{/name}","releases_url":"https://api.github.com/repos/PaddlePaddle/Paddle/releases{/id}","deployments_url":"https://api.github.com/repos/PaddlePaddle/Paddle/deployments","created_at":"2016-08-15T06:59:08Z","updated_at":"2018-06-17T05:31:26Z","pushed_at":"2018-06-17T05:30:26Z","git_url":"git://github.com/PaddlePaddle/Paddle.git","ssh_url":"git@github.com:PaddlePaddle/Paddle.git","clone_url":"https://github.com/PaddlePaddle/Paddle.git","svn_url":"https://github.com/PaddlePaddle/Paddle","homepage":"http://www.paddlepaddle.org/","size":108950,"stargazers_count":7066,"watchers_count":7066,"language":"C++","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1940,"mirror_url":null,"archived":false,"open_issues_count":1276,"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":1940,"open_issues":1276,"watchers":7066,"default_branch":"develop"}},"_links":{"self":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430"},"html":{"href":"https://github.com/PaddlePaddle/Paddle/pull/11430"},"issue":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/11430"},"comments":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/issues/11430/comments"},"review_comments":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430/comments"},"review_comment":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/pulls/11430/commits"},"statuses":{"href":"https://api.github.com/repos/PaddlePaddle/Paddle/statuses/8780c08961564c8af3d42268cbd77170d23b9ba7"}},"author_association":"CONTRIBUTOR"}}
{"actor":{"display_login":"Tuvie"}}