{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/35271106","id":35271106,"diff_hunk":"@@ -0,0 +1,71 @@\n+/*\n+ * Licensed to the University of California, Berkeley under one or more contributor license\n+ * agreements. See the NOTICE file distributed with this work for additional information regarding\n+ * copyright ownership. The ASF licenses this file to You under the Apache License, Version 2.0 (the\n+ * \"License\"); you may not use this file except in compliance with the License. You may obtain a\n+ * 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 distributed under the License\n+ * is distributed on an \"AS IS\" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express\n+ * or implied. See the License for the specific language governing permissions and limitations under\n+ * the License.\n+ */\n+\n+package tachyon.worker.block.evictor;\n+\n+import java.io.File;\n+import java.util.Collections;\n+\n+import org.junit.Assert;\n+import org.junit.Before;\n+import org.junit.Rule;\n+import org.junit.Test;\n+import org.junit.rules.TemporaryFolder;\n+\n+import tachyon.worker.block.BlockMetadataManager;\n+import tachyon.worker.block.BlockMetadataManagerView;\n+\n+/*\n+ * Test EvictorFactory by passing different AllocatorType ","path":"servers/src/test/java/tachyon/worker/block/evictor/EvictorFactoryTest.java","position":31,"original_position":31,"commit_id":"bbed09300babccd81e1ce7e6b63df74540d540df","original_commit_id":"bbed09300babccd81e1ce7e6b63df74540d540df","user":{"login":"gpang","id":429032,"avatar_url":"https://avatars.githubusercontent.com/u/429032?v=3","gravatar_id":"","url":"https://api.github.com/users/gpang","html_url":"https://github.com/gpang","followers_url":"https://api.github.com/users/gpang/followers","following_url":"https://api.github.com/users/gpang/following{/other_user}","gists_url":"https://api.github.com/users/gpang/gists{/gist_id}","starred_url":"https://api.github.com/users/gpang/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gpang/subscriptions","organizations_url":"https://api.github.com/users/gpang/orgs","repos_url":"https://api.github.com/users/gpang/repos","events_url":"https://api.github.com/users/gpang/events{/privacy}","received_events_url":"https://api.github.com/users/gpang/received_events","type":"User","site_admin":false},"body":"Can you replace \"Allocator\" with \"Evictor\"?","created_at":"2015-07-22T22:18:01Z","updated_at":"2015-07-22T22:18:01Z","html_url":"https://github.com/amplab/tachyon/pull/1145#discussion_r35271106","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1145","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/35271106"},"html":{"href":"https://github.com/amplab/tachyon/pull/1145#discussion_r35271106"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1145"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1145","id":40325148,"html_url":"https://github.com/amplab/tachyon/pull/1145","diff_url":"https://github.com/amplab/tachyon/pull/1145.diff","patch_url":"https://github.com/amplab/tachyon/pull/1145.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1145","number":1145,"state":"open","locked":false,"title":"[TACHYON-648] Add unit test of EvictorFactory","user":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"body":"[TACHYON-648] Add unit test of EvictorFactory\r\n\r\nChange the code to meet comments in \r\nhttps://github.com/amplab/tachyon/pull/1119\r\n","created_at":"2015-07-20T06:01:33Z","updated_at":"2015-07-22T22:18:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"390a93b1b25e7300a182a20b5b9a5a735461dde7","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1145/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1145/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1145/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/bbed09300babccd81e1ce7e6b63df74540d540df","head":{"label":"luoli523:master","ref":"master","sha":"bbed09300babccd81e1ce7e6b63df74540d540df","user":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"repo":{"id":38763997,"name":"tachyon","full_name":"luoli523/tachyon","owner":{"login":"luoli523","id":525390,"avatar_url":"https://avatars.githubusercontent.com/u/525390?v=3","gravatar_id":"","url":"https://api.github.com/users/luoli523","html_url":"https://github.com/luoli523","followers_url":"https://api.github.com/users/luoli523/followers","following_url":"https://api.github.com/users/luoli523/following{/other_user}","gists_url":"https://api.github.com/users/luoli523/gists{/gist_id}","starred_url":"https://api.github.com/users/luoli523/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/luoli523/subscriptions","organizations_url":"https://api.github.com/users/luoli523/orgs","repos_url":"https://api.github.com/users/luoli523/repos","events_url":"https://api.github.com/users/luoli523/events{/privacy}","received_events_url":"https://api.github.com/users/luoli523/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/luoli523/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/luoli523/tachyon","forks_url":"https://api.github.com/repos/luoli523/tachyon/forks","keys_url":"https://api.github.com/repos/luoli523/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/luoli523/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/luoli523/tachyon/teams","hooks_url":"https://api.github.com/repos/luoli523/tachyon/hooks","issue_events_url":"https://api.github.com/repos/luoli523/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/luoli523/tachyon/events","assignees_url":"https://api.github.com/repos/luoli523/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/luoli523/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/luoli523/tachyon/tags","blobs_url":"https://api.github.com/repos/luoli523/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/luoli523/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/luoli523/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/luoli523/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/luoli523/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/luoli523/tachyon/languages","stargazers_url":"https://api.github.com/repos/luoli523/tachyon/stargazers","contributors_url":"https://api.github.com/repos/luoli523/tachyon/contributors","subscribers_url":"https://api.github.com/repos/luoli523/tachyon/subscribers","subscription_url":"https://api.github.com/repos/luoli523/tachyon/subscription","commits_url":"https://api.github.com/repos/luoli523/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/luoli523/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/luoli523/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/luoli523/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/luoli523/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/luoli523/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/luoli523/tachyon/merges","archive_url":"https://api.github.com/repos/luoli523/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/luoli523/tachyon/downloads","issues_url":"https://api.github.com/repos/luoli523/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/luoli523/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/luoli523/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/luoli523/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/luoli523/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/luoli523/tachyon/releases{/id}","created_at":"2015-07-08T15:51:11Z","updated_at":"2015-07-08T15:51:13Z","pushed_at":"2015-07-20T05:53:24Z","git_url":"git://github.com/luoli523/tachyon.git","ssh_url":"git@github.com:luoli523/tachyon.git","clone_url":"https://github.com/luoli523/tachyon.git","svn_url":"https://github.com/luoli523/tachyon","homepage":"http://tachyon-project.org","size":15307,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"amplab:master","ref":"master","sha":"f37654468d8693f491c27c069bc64da5c91b0a79","user":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"tachyon","full_name":"amplab/tachyon","owner":{"login":"amplab","id":1438454,"avatar_url":"https://avatars.githubusercontent.com/u/1438454?v=3","gravatar_id":"","url":"https://api.github.com/users/amplab","html_url":"https://github.com/amplab","followers_url":"https://api.github.com/users/amplab/followers","following_url":"https://api.github.com/users/amplab/following{/other_user}","gists_url":"https://api.github.com/users/amplab/gists{/gist_id}","starred_url":"https://api.github.com/users/amplab/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/amplab/subscriptions","organizations_url":"https://api.github.com/users/amplab/orgs","repos_url":"https://api.github.com/users/amplab/repos","events_url":"https://api.github.com/users/amplab/events{/privacy}","received_events_url":"https://api.github.com/users/amplab/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/amplab/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":false,"url":"https://api.github.com/repos/amplab/tachyon","forks_url":"https://api.github.com/repos/amplab/tachyon/forks","keys_url":"https://api.github.com/repos/amplab/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/amplab/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/amplab/tachyon/teams","hooks_url":"https://api.github.com/repos/amplab/tachyon/hooks","issue_events_url":"https://api.github.com/repos/amplab/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/amplab/tachyon/events","assignees_url":"https://api.github.com/repos/amplab/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/amplab/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/amplab/tachyon/tags","blobs_url":"https://api.github.com/repos/amplab/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/amplab/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/amplab/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/amplab/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/amplab/tachyon/languages","stargazers_url":"https://api.github.com/repos/amplab/tachyon/stargazers","contributors_url":"https://api.github.com/repos/amplab/tachyon/contributors","subscribers_url":"https://api.github.com/repos/amplab/tachyon/subscribers","subscription_url":"https://api.github.com/repos/amplab/tachyon/subscription","commits_url":"https://api.github.com/repos/amplab/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/amplab/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/amplab/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/amplab/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/amplab/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/amplab/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/amplab/tachyon/merges","archive_url":"https://api.github.com/repos/amplab/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/amplab/tachyon/downloads","issues_url":"https://api.github.com/repos/amplab/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/amplab/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/amplab/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/amplab/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/amplab/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/amplab/tachyon/releases{/id}","created_at":"2012-12-21T17:43:46Z","updated_at":"2015-07-22T21:19:47Z","pushed_at":"2015-07-22T22:17:33Z","git_url":"git://github.com/amplab/tachyon.git","ssh_url":"git@github.com:amplab/tachyon.git","clone_url":"https://github.com/amplab/tachyon.git","svn_url":"https://github.com/amplab/tachyon","homepage":"http://tachyon-project.org","size":37393,"stargazers_count":1480,"watchers_count":1480,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":564,"mirror_url":null,"open_issues_count":23,"forks":564,"open_issues":23,"watchers":1480,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1145"},"html":{"href":"https://github.com/amplab/tachyon/pull/1145"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1145"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1145/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1145/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1145/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/bbed09300babccd81e1ce7e6b63df74540d540df"}}}}