{"action":"created","comment":{"url":"https://api.github.com/repos/baidu/tera/pulls/comments/38837483","id":38837483,"diff_hunk":"@@ -2900,6 +2908,18 @@ void MasterImpl::QueryTabletNodeCallback(std::string addr, QueryRequest* request\n         std::vector<TabletPtr>::iterator it;\n         for (it = tablet_list.begin(); it != tablet_list.end(); ++it) {\n             TabletPtr tablet = *it;\n+            tabletnode::TabletRange range(tablet->GetTableName(), tablet->GetKeyStart(), \n+                                                                tablet->GetKeyEnd());\n+            if ((ts_map.find(range) == ts_map.end()) && \n+                (tablet->SetStatusIf(kTableUnLoading, kTableReady))) {","path":"src/master/master_impl.cc","position":35,"original_position":35,"commit_id":"c1a271d66a14d2c9f3475d8c9ab64afb17705907","original_commit_id":"c1a271d66a14d2c9f3475d8c9ab64afb17705907","user":{"login":"xupeilin","id":11419707,"avatar_url":"https://avatars.githubusercontent.com/u/11419707?v=3","gravatar_id":"","url":"https://api.github.com/users/xupeilin","html_url":"https://github.com/xupeilin","followers_url":"https://api.github.com/users/xupeilin/followers","following_url":"https://api.github.com/users/xupeilin/following{/other_user}","gists_url":"https://api.github.com/users/xupeilin/gists{/gist_id}","starred_url":"https://api.github.com/users/xupeilin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/xupeilin/subscriptions","organizations_url":"https://api.github.com/users/xupeilin/orgs","repos_url":"https://api.github.com/users/xupeilin/repos","events_url":"https://api.github.com/users/xupeilin/events{/privacy}","received_events_url":"https://api.github.com/users/xupeilin/received_events","type":"User","site_admin":false},"body":"异常状态，保证LOG(ERROR)","created_at":"2015-09-07T07:07:24Z","updated_at":"2015-09-07T07:07:24Z","html_url":"https://github.com/baidu/tera/pull/300#discussion_r38837483","pull_request_url":"https://api.github.com/repos/baidu/tera/pulls/300","_links":{"self":{"href":"https://api.github.com/repos/baidu/tera/pulls/comments/38837483"},"html":{"href":"https://github.com/baidu/tera/pull/300#discussion_r38837483"},"pull_request":{"href":"https://api.github.com/repos/baidu/tera/pulls/300"}}},"pull_request":{"url":"https://api.github.com/repos/baidu/tera/pulls/300","id":44305559,"html_url":"https://github.com/baidu/tera/pull/300","diff_url":"https://github.com/baidu/tera/pull/300.diff","patch_url":"https://github.com/baidu/tera/pull/300.patch","issue_url":"https://api.github.com/repos/baidu/tera/issues/300","number":300,"state":"open","locked":false,"title":"#177 : redo unload in QueryTablet","user":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"body":"在query接口中，解决新旧master的unload先后到达问题","created_at":"2015-09-06T16:30:51Z","updated_at":"2015-09-07T07:07:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"e32661bed2d3ba1a3de74cfe67792511641a9680","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/baidu/tera/pulls/300/commits","review_comments_url":"https://api.github.com/repos/baidu/tera/pulls/300/comments","review_comment_url":"https://api.github.com/repos/baidu/tera/pulls/comments{/number}","comments_url":"https://api.github.com/repos/baidu/tera/issues/300/comments","statuses_url":"https://api.github.com/repos/baidu/tera/statuses/c1a271d66a14d2c9f3475d8c9ab64afb17705907","head":{"label":"caijieming-baidu:rs_unload001","ref":"rs_unload001","sha":"c1a271d66a14d2c9f3475d8c9ab64afb17705907","user":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"repo":{"id":39835330,"name":"tera","full_name":"caijieming-baidu/tera","owner":{"login":"caijieming-baidu","id":13461134,"avatar_url":"https://avatars.githubusercontent.com/u/13461134?v=3","gravatar_id":"","url":"https://api.github.com/users/caijieming-baidu","html_url":"https://github.com/caijieming-baidu","followers_url":"https://api.github.com/users/caijieming-baidu/followers","following_url":"https://api.github.com/users/caijieming-baidu/following{/other_user}","gists_url":"https://api.github.com/users/caijieming-baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/caijieming-baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/caijieming-baidu/subscriptions","organizations_url":"https://api.github.com/users/caijieming-baidu/orgs","repos_url":"https://api.github.com/users/caijieming-baidu/repos","events_url":"https://api.github.com/users/caijieming-baidu/events{/privacy}","received_events_url":"https://api.github.com/users/caijieming-baidu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/caijieming-baidu/tera","description":"A distributed, elastic, structured database.","fork":true,"url":"https://api.github.com/repos/caijieming-baidu/tera","forks_url":"https://api.github.com/repos/caijieming-baidu/tera/forks","keys_url":"https://api.github.com/repos/caijieming-baidu/tera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/caijieming-baidu/tera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/caijieming-baidu/tera/teams","hooks_url":"https://api.github.com/repos/caijieming-baidu/tera/hooks","issue_events_url":"https://api.github.com/repos/caijieming-baidu/tera/issues/events{/number}","events_url":"https://api.github.com/repos/caijieming-baidu/tera/events","assignees_url":"https://api.github.com/repos/caijieming-baidu/tera/assignees{/user}","branches_url":"https://api.github.com/repos/caijieming-baidu/tera/branches{/branch}","tags_url":"https://api.github.com/repos/caijieming-baidu/tera/tags","blobs_url":"https://api.github.com/repos/caijieming-baidu/tera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/caijieming-baidu/tera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/caijieming-baidu/tera/git/refs{/sha}","trees_url":"https://api.github.com/repos/caijieming-baidu/tera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/caijieming-baidu/tera/statuses/{sha}","languages_url":"https://api.github.com/repos/caijieming-baidu/tera/languages","stargazers_url":"https://api.github.com/repos/caijieming-baidu/tera/stargazers","contributors_url":"https://api.github.com/repos/caijieming-baidu/tera/contributors","subscribers_url":"https://api.github.com/repos/caijieming-baidu/tera/subscribers","subscription_url":"https://api.github.com/repos/caijieming-baidu/tera/subscription","commits_url":"https://api.github.com/repos/caijieming-baidu/tera/commits{/sha}","git_commits_url":"https://api.github.com/repos/caijieming-baidu/tera/git/commits{/sha}","comments_url":"https://api.github.com/repos/caijieming-baidu/tera/comments{/number}","issue_comment_url":"https://api.github.com/repos/caijieming-baidu/tera/issues/comments{/number}","contents_url":"https://api.github.com/repos/caijieming-baidu/tera/contents/{+path}","compare_url":"https://api.github.com/repos/caijieming-baidu/tera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/caijieming-baidu/tera/merges","archive_url":"https://api.github.com/repos/caijieming-baidu/tera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/caijieming-baidu/tera/downloads","issues_url":"https://api.github.com/repos/caijieming-baidu/tera/issues{/number}","pulls_url":"https://api.github.com/repos/caijieming-baidu/tera/pulls{/number}","milestones_url":"https://api.github.com/repos/caijieming-baidu/tera/milestones{/number}","notifications_url":"https://api.github.com/repos/caijieming-baidu/tera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/caijieming-baidu/tera/labels{/name}","releases_url":"https://api.github.com/repos/caijieming-baidu/tera/releases{/id}","created_at":"2015-07-28T13:25:54Z","updated_at":"2015-07-28T13:25:55Z","pushed_at":"2015-09-06T16:29:47Z","git_url":"git://github.com/caijieming-baidu/tera.git","ssh_url":"git@github.com:caijieming-baidu/tera.git","clone_url":"https://github.com/caijieming-baidu/tera.git","svn_url":"https://github.com/caijieming-baidu/tera","homepage":"","size":16860,"stargazers_count":0,"watchers_count":0,"language":"C++","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"baidu:master","ref":"master","sha":"9901fe12cf5635b43d08bc5139d2c42d2da8a5a8","user":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"repo":{"id":18129915,"name":"tera","full_name":"baidu/tera","owner":{"login":"baidu","id":13245940,"avatar_url":"https://avatars.githubusercontent.com/u/13245940?v=3","gravatar_id":"","url":"https://api.github.com/users/baidu","html_url":"https://github.com/baidu","followers_url":"https://api.github.com/users/baidu/followers","following_url":"https://api.github.com/users/baidu/following{/other_user}","gists_url":"https://api.github.com/users/baidu/gists{/gist_id}","starred_url":"https://api.github.com/users/baidu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/baidu/subscriptions","organizations_url":"https://api.github.com/users/baidu/orgs","repos_url":"https://api.github.com/users/baidu/repos","events_url":"https://api.github.com/users/baidu/events{/privacy}","received_events_url":"https://api.github.com/users/baidu/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/baidu/tera","description":"A distributed, elastic, structured database.","fork":false,"url":"https://api.github.com/repos/baidu/tera","forks_url":"https://api.github.com/repos/baidu/tera/forks","keys_url":"https://api.github.com/repos/baidu/tera/keys{/key_id}","collaborators_url":"https://api.github.com/repos/baidu/tera/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/baidu/tera/teams","hooks_url":"https://api.github.com/repos/baidu/tera/hooks","issue_events_url":"https://api.github.com/repos/baidu/tera/issues/events{/number}","events_url":"https://api.github.com/repos/baidu/tera/events","assignees_url":"https://api.github.com/repos/baidu/tera/assignees{/user}","branches_url":"https://api.github.com/repos/baidu/tera/branches{/branch}","tags_url":"https://api.github.com/repos/baidu/tera/tags","blobs_url":"https://api.github.com/repos/baidu/tera/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/baidu/tera/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/baidu/tera/git/refs{/sha}","trees_url":"https://api.github.com/repos/baidu/tera/git/trees{/sha}","statuses_url":"https://api.github.com/repos/baidu/tera/statuses/{sha}","languages_url":"https://api.github.com/repos/baidu/tera/languages","stargazers_url":"https://api.github.com/repos/baidu/tera/stargazers","contributors_url":"https://api.github.com/repos/baidu/tera/contributors","subscribers_url":"https://api.github.com/repos/baidu/tera/subscribers","subscription_url":"https://api.github.com/repos/baidu/tera/subscription","commits_url":"https://api.github.com/repos/baidu/tera/commits{/sha}","git_commits_url":"https://api.github.com/repos/baidu/tera/git/commits{/sha}","comments_url":"https://api.github.com/repos/baidu/tera/comments{/number}","issue_comment_url":"https://api.github.com/repos/baidu/tera/issues/comments{/number}","contents_url":"https://api.github.com/repos/baidu/tera/contents/{+path}","compare_url":"https://api.github.com/repos/baidu/tera/compare/{base}...{head}","merges_url":"https://api.github.com/repos/baidu/tera/merges","archive_url":"https://api.github.com/repos/baidu/tera/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/baidu/tera/downloads","issues_url":"https://api.github.com/repos/baidu/tera/issues{/number}","pulls_url":"https://api.github.com/repos/baidu/tera/pulls{/number}","milestones_url":"https://api.github.com/repos/baidu/tera/milestones{/number}","notifications_url":"https://api.github.com/repos/baidu/tera/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/baidu/tera/labels{/name}","releases_url":"https://api.github.com/repos/baidu/tera/releases{/id}","created_at":"2014-03-26T07:22:05Z","updated_at":"2015-09-02T09:59:25Z","pushed_at":"2015-09-06T16:30:51Z","git_url":"git://github.com/baidu/tera.git","ssh_url":"git@github.com:baidu/tera.git","clone_url":"https://github.com/baidu/tera.git","svn_url":"https://github.com/baidu/tera","homepage":"","size":15464,"stargazers_count":281,"watchers_count":281,"language":"C++","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":87,"mirror_url":null,"open_issues_count":34,"forks":87,"open_issues":34,"watchers":281,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/baidu/tera/pulls/300"},"html":{"href":"https://github.com/baidu/tera/pull/300"},"issue":{"href":"https://api.github.com/repos/baidu/tera/issues/300"},"comments":{"href":"https://api.github.com/repos/baidu/tera/issues/300/comments"},"review_comments":{"href":"https://api.github.com/repos/baidu/tera/pulls/300/comments"},"review_comment":{"href":"https://api.github.com/repos/baidu/tera/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/baidu/tera/pulls/300/commits"},"statuses":{"href":"https://api.github.com/repos/baidu/tera/statuses/c1a271d66a14d2c9f3475d8c9ab64afb17705907"}}}}