{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/46751882","id":46751882,"diff_hunk":"@@ -169,10 +168,118 @@ public void renameFileTest1() throws IOException, TachyonException {\n   @Test\n   public void renameFileTest2() throws IOException, TachyonException {\n     TachyonURI uniqUri = new TachyonURI(PathUtils.uniqPath());\n-    sTfs.getOutStream(uniqUri, sWriteBoth).close();\n-    TachyonFile f = sTfs.open(uniqUri);\n+    mTfs.getOutStream(uniqUri, mWriteBoth).close();\n+    TachyonFile f = mTfs.open(uniqUri);\n     long oldFileId = f.getFileId();\n-    Assert.assertTrue(sTfs.rename(f, uniqUri));\n-    Assert.assertEquals(oldFileId, sTfs.open(uniqUri).getFileId());\n+    Assert.assertTrue(mTfs.rename(f, uniqUri));\n+    Assert.assertEquals(oldFileId, mTfs.open(uniqUri).getFileId());\n+  }\n+\n+  /**\n+   * Creates another directory on the local filesystem, alongside the existing Ufs, to be used as a\n+   * second Ufs\n+   * @return the path of the alternate Ufs directory\n+   */\n+  private String createAlternateUfs() throws InvalidPathException, IOException {\n+    String parentDir =\n+        PathUtils.getParent(mLocalTachyonClusterResource.getTestConf().get(\n+            Constants.UNDERFS_ADDRESS));\n+    String alternateUfsRoot = PathUtils.concatPath(parentDir, \"alternateUnderFSStorage\");\n+    UnderFileSystemUtils.mkdirIfNotExists(alternateUfsRoot,\n+        mLocalTachyonClusterResource.getTestConf());\n+    return alternateUfsRoot;\n+  }\n+\n+  /**\n+   * Deletes the alternate under file system directory\n+   * @param alternateUfsRoot the root of the alternate Ufs\n+   * @throws IOException","path":"integration-tests/src/test/java/tachyon/client/TachyonFileSystemIntegrationTest.java","position":193,"original_position":193,"commit_id":"76968a21e824d42f5e085452633d34d77b1ac388","original_commit_id":"76968a21e824d42f5e085452633d34d77b1ac388","user":{"login":"jsimsa","id":1072079,"avatar_url":"https://avatars.githubusercontent.com/u/1072079?v=3","gravatar_id":"","url":"https://api.github.com/users/jsimsa","html_url":"https://github.com/jsimsa","followers_url":"https://api.github.com/users/jsimsa/followers","following_url":"https://api.github.com/users/jsimsa/following{/other_user}","gists_url":"https://api.github.com/users/jsimsa/gists{/gist_id}","starred_url":"https://api.github.com/users/jsimsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jsimsa/subscriptions","organizations_url":"https://api.github.com/users/jsimsa/orgs","repos_url":"https://api.github.com/users/jsimsa/repos","events_url":"https://api.github.com/users/jsimsa/events{/privacy}","received_events_url":"https://api.github.com/users/jsimsa/received_events","type":"User","site_admin":false},"body":"add exception description","created_at":"2015-12-05T02:06:52Z","updated_at":"2015-12-05T02:06:52Z","html_url":"https://github.com/amplab/tachyon/pull/2220#discussion_r46751882","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/2220","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/46751882"},"html":{"href":"https://github.com/amplab/tachyon/pull/2220#discussion_r46751882"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2220"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/2220","id":52741967,"html_url":"https://github.com/amplab/tachyon/pull/2220","diff_url":"https://github.com/amplab/tachyon/pull/2220.diff","patch_url":"https://github.com/amplab/tachyon/pull/2220.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/2220","number":2220,"state":"open","locked":false,"title":"[Tachyon-1333] Improved mount path checking","user":{"login":"manugoyal","id":628968,"avatar_url":"https://avatars.githubusercontent.com/u/628968?v=3","gravatar_id":"","url":"https://api.github.com/users/manugoyal","html_url":"https://github.com/manugoyal","followers_url":"https://api.github.com/users/manugoyal/followers","following_url":"https://api.github.com/users/manugoyal/following{/other_user}","gists_url":"https://api.github.com/users/manugoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/manugoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manugoyal/subscriptions","organizations_url":"https://api.github.com/users/manugoyal/orgs","repos_url":"https://api.github.com/users/manugoyal/repos","events_url":"https://api.github.com/users/manugoyal/events{/privacy}","received_events_url":"https://api.github.com/users/manugoyal/received_events","type":"User","site_admin":false},"body":"For correctness and simplicity, we place a few restrictions on mounting\r\npaths:\r\n\r\n1. You cannot mount a UFS path that is a prefix or a suffix of an\r\nalready-mounted UFS path\r\n2. You cannot mount to a Tachyon path that shadows a path in the default\r\nunderfs\r\n3. The UFS path you are mounting must exist at mount time","created_at":"2015-12-05T01:21:52Z","updated_at":"2015-12-05T02:06:52Z","closed_at":null,"merged_at":null,"merge_commit_sha":"76a3a7251f8d9c4aad4d0c03a39e85e526175f65","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/2220/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/2220/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/2220/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/76968a21e824d42f5e085452633d34d77b1ac388","head":{"label":"manugoyal:mount-path-restrictions","ref":"mount-path-restrictions","sha":"76968a21e824d42f5e085452633d34d77b1ac388","user":{"login":"manugoyal","id":628968,"avatar_url":"https://avatars.githubusercontent.com/u/628968?v=3","gravatar_id":"","url":"https://api.github.com/users/manugoyal","html_url":"https://github.com/manugoyal","followers_url":"https://api.github.com/users/manugoyal/followers","following_url":"https://api.github.com/users/manugoyal/following{/other_user}","gists_url":"https://api.github.com/users/manugoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/manugoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manugoyal/subscriptions","organizations_url":"https://api.github.com/users/manugoyal/orgs","repos_url":"https://api.github.com/users/manugoyal/repos","events_url":"https://api.github.com/users/manugoyal/events{/privacy}","received_events_url":"https://api.github.com/users/manugoyal/received_events","type":"User","site_admin":false},"repo":{"id":16339378,"name":"tachyon","full_name":"manugoyal/tachyon","owner":{"login":"manugoyal","id":628968,"avatar_url":"https://avatars.githubusercontent.com/u/628968?v=3","gravatar_id":"","url":"https://api.github.com/users/manugoyal","html_url":"https://github.com/manugoyal","followers_url":"https://api.github.com/users/manugoyal/followers","following_url":"https://api.github.com/users/manugoyal/following{/other_user}","gists_url":"https://api.github.com/users/manugoyal/gists{/gist_id}","starred_url":"https://api.github.com/users/manugoyal/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manugoyal/subscriptions","organizations_url":"https://api.github.com/users/manugoyal/orgs","repos_url":"https://api.github.com/users/manugoyal/repos","events_url":"https://api.github.com/users/manugoyal/events{/privacy}","received_events_url":"https://api.github.com/users/manugoyal/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/manugoyal/tachyon","description":"Reliable File Sharing at Memory Speed Across Cluster Frameworks","fork":true,"url":"https://api.github.com/repos/manugoyal/tachyon","forks_url":"https://api.github.com/repos/manugoyal/tachyon/forks","keys_url":"https://api.github.com/repos/manugoyal/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/manugoyal/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/manugoyal/tachyon/teams","hooks_url":"https://api.github.com/repos/manugoyal/tachyon/hooks","issue_events_url":"https://api.github.com/repos/manugoyal/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/manugoyal/tachyon/events","assignees_url":"https://api.github.com/repos/manugoyal/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/manugoyal/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/manugoyal/tachyon/tags","blobs_url":"https://api.github.com/repos/manugoyal/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/manugoyal/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/manugoyal/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/manugoyal/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/manugoyal/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/manugoyal/tachyon/languages","stargazers_url":"https://api.github.com/repos/manugoyal/tachyon/stargazers","contributors_url":"https://api.github.com/repos/manugoyal/tachyon/contributors","subscribers_url":"https://api.github.com/repos/manugoyal/tachyon/subscribers","subscription_url":"https://api.github.com/repos/manugoyal/tachyon/subscription","commits_url":"https://api.github.com/repos/manugoyal/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/manugoyal/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/manugoyal/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/manugoyal/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/manugoyal/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/manugoyal/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/manugoyal/tachyon/merges","archive_url":"https://api.github.com/repos/manugoyal/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/manugoyal/tachyon/downloads","issues_url":"https://api.github.com/repos/manugoyal/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/manugoyal/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/manugoyal/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/manugoyal/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/manugoyal/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/manugoyal/tachyon/releases{/id}","created_at":"2014-01-29T08:35:14Z","updated_at":"2014-07-17T03:07:23Z","pushed_at":"2015-12-05T01:21:36Z","git_url":"git://github.com/manugoyal/tachyon.git","ssh_url":"git@github.com:manugoyal/tachyon.git","clone_url":"https://github.com/manugoyal/tachyon.git","svn_url":"https://github.com/manugoyal/tachyon","homepage":"http://tachyon-project.org","size":31998,"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":"1e1b5a1ca963b07cadfa522124027e8fb099a6ae","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":"Memory Centric Reliable Distributed Storage","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-12-04T15:58:09Z","pushed_at":"2015-12-05T01:21:52Z","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":40512,"stargazers_count":1779,"watchers_count":1779,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":707,"mirror_url":null,"open_issues_count":28,"forks":707,"open_issues":28,"watchers":1779,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2220"},"html":{"href":"https://github.com/amplab/tachyon/pull/2220"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2220"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2220/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2220/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2220/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/76968a21e824d42f5e085452633d34d77b1ac388"}}}}