{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/36602197","id":36602197,"diff_hunk":"@@ -86,9 +87,10 @@\n    */\n   private final ReentrantReadWriteLock mEvictionLock = new ReentrantReadWriteLock();\n \n-  public TieredBlockStore(TachyonConf tachyonConf) {\n-    mTachyonConf = Preconditions.checkNotNull(tachyonConf);\n-    mMetaManager = BlockMetadataManager.newBlockMetadataManager(mTachyonConf);\n+  public TieredBlockStore() {\n+    mTachyonConf = WorkerContext.getConf();\n+    Preconditions.checkNotNull(mTachyonConf);","path":"servers/src/main/java/tachyon/worker/block/TieredBlockStore.java","position":17,"original_position":17,"commit_id":"07876fcd40702d554c3c0070363c2b3770c6f1e8","original_commit_id":"07876fcd40702d554c3c0070363c2b3770c6f1e8","user":{"login":"apc999","id":1413748,"avatar_url":"https://avatars.githubusercontent.com/u/1413748?v=3","gravatar_id":"","url":"https://api.github.com/users/apc999","html_url":"https://github.com/apc999","followers_url":"https://api.github.com/users/apc999/followers","following_url":"https://api.github.com/users/apc999/following{/other_user}","gists_url":"https://api.github.com/users/apc999/gists{/gist_id}","starred_url":"https://api.github.com/users/apc999/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/apc999/subscriptions","organizations_url":"https://api.github.com/users/apc999/orgs","repos_url":"https://api.github.com/users/apc999/repos","events_url":"https://api.github.com/users/apc999/events{/privacy}","received_events_url":"https://api.github.com/users/apc999/received_events","type":"User","site_admin":false},"body":"I don't think you need `Preconditions.checkNotNull(mTachyonConf);` now","created_at":"2015-08-10T05:06:41Z","updated_at":"2015-08-10T05:06:41Z","html_url":"https://github.com/amplab/tachyon/pull/1249#discussion_r36602197","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/1249","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/36602197"},"html":{"href":"https://github.com/amplab/tachyon/pull/1249#discussion_r36602197"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1249"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/1249","id":41977493,"html_url":"https://github.com/amplab/tachyon/pull/1249","diff_url":"https://github.com/amplab/tachyon/pull/1249.diff","patch_url":"https://github.com/amplab/tachyon/pull/1249.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/1249","number":1249,"state":"open","locked":false,"title":"[TACHYON-729] Create WorkerContext to pass around TachyonConf","user":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"body":"https://tachyon.atlassian.net/browse/TACHYON-729","created_at":"2015-08-09T21:34:03Z","updated_at":"2015-08-10T05:06:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1e041a1e360b49b2aca0babb1653f81978bda42d","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/1249/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/1249/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/1249/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/07876fcd40702d554c3c0070363c2b3770c6f1e8","head":{"label":"miasantreble:TACHYON-729","ref":"TACHYON-729","sha":"07876fcd40702d554c3c0070363c2b3770c6f1e8","user":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"repo":{"id":36108171,"name":"tachyon","full_name":"miasantreble/tachyon","owner":{"login":"miasantreble","id":12212793,"avatar_url":"https://avatars.githubusercontent.com/u/12212793?v=3","gravatar_id":"","url":"https://api.github.com/users/miasantreble","html_url":"https://github.com/miasantreble","followers_url":"https://api.github.com/users/miasantreble/followers","following_url":"https://api.github.com/users/miasantreble/following{/other_user}","gists_url":"https://api.github.com/users/miasantreble/gists{/gist_id}","starred_url":"https://api.github.com/users/miasantreble/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/miasantreble/subscriptions","organizations_url":"https://api.github.com/users/miasantreble/orgs","repos_url":"https://api.github.com/users/miasantreble/repos","events_url":"https://api.github.com/users/miasantreble/events{/privacy}","received_events_url":"https://api.github.com/users/miasantreble/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/miasantreble/tachyon","description":" A Reliable Memory Centric Distributed Storage System","fork":true,"url":"https://api.github.com/repos/miasantreble/tachyon","forks_url":"https://api.github.com/repos/miasantreble/tachyon/forks","keys_url":"https://api.github.com/repos/miasantreble/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/miasantreble/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/miasantreble/tachyon/teams","hooks_url":"https://api.github.com/repos/miasantreble/tachyon/hooks","issue_events_url":"https://api.github.com/repos/miasantreble/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/miasantreble/tachyon/events","assignees_url":"https://api.github.com/repos/miasantreble/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/miasantreble/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/miasantreble/tachyon/tags","blobs_url":"https://api.github.com/repos/miasantreble/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/miasantreble/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/miasantreble/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/miasantreble/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/miasantreble/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/miasantreble/tachyon/languages","stargazers_url":"https://api.github.com/repos/miasantreble/tachyon/stargazers","contributors_url":"https://api.github.com/repos/miasantreble/tachyon/contributors","subscribers_url":"https://api.github.com/repos/miasantreble/tachyon/subscribers","subscription_url":"https://api.github.com/repos/miasantreble/tachyon/subscription","commits_url":"https://api.github.com/repos/miasantreble/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/miasantreble/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/miasantreble/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/miasantreble/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/miasantreble/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/miasantreble/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/miasantreble/tachyon/merges","archive_url":"https://api.github.com/repos/miasantreble/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/miasantreble/tachyon/downloads","issues_url":"https://api.github.com/repos/miasantreble/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/miasantreble/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/miasantreble/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/miasantreble/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/miasantreble/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/miasantreble/tachyon/releases{/id}","created_at":"2015-05-23T05:25:18Z","updated_at":"2015-05-23T05:25:20Z","pushed_at":"2015-08-10T03:09:12Z","git_url":"git://github.com/miasantreble/tachyon.git","ssh_url":"git@github.com:miasantreble/tachyon.git","clone_url":"https://github.com/miasantreble/tachyon.git","svn_url":"https://github.com/miasantreble/tachyon","homepage":"http://tachyon-project.org","size":16076,"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":"8b2a8127d99ee0e9e0f74f51f91cde87833cbef9","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-08-09T08:45:24Z","pushed_at":"2015-08-10T05:00:40Z","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":38313,"stargazers_count":1494,"watchers_count":1494,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":576,"mirror_url":null,"open_issues_count":31,"forks":576,"open_issues":31,"watchers":1494,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1249"},"html":{"href":"https://github.com/amplab/tachyon/pull/1249"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1249"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/1249/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1249/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/1249/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/07876fcd40702d554c3c0070363c2b3770c6f1e8"}}}}