{"action":"created","comment":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/107301213","pull_request_review_id":28264796,"id":107301213,"diff_hunk":"@@ -555,7 +555,8 @@ private void copyFileToLocal(AlluxioURI srcPath, AlluxioURI dstPath)\n     File dstFile = new File(dstPath.getPath());\n     String randomSuffix =\n         String.format(\".%s_copyToLocal_\", RandomStringUtils.randomAlphanumeric(8));\n-    File tmpDst = new File(Name.HOME + randomSuffix);\n+    File tmpDst = new File(PathUtils.concatPath( dstFile.getAbsolutePath(),","path":"shell/src/main/java/alluxio/shell/command/CpCommand.java","position":null,"original_position":5,"commit_id":"2c7b68146d039086811e434839bd9aa54f96f807","original_commit_id":"2c7b68146d039086811e434839bd9aa54f96f807","user":{"login":"aaudiber","id":3455177,"avatar_url":"https://avatars0.githubusercontent.com/u/3455177?v=3","gravatar_id":"","url":"https://api.github.com/users/aaudiber","html_url":"https://github.com/aaudiber","followers_url":"https://api.github.com/users/aaudiber/followers","following_url":"https://api.github.com/users/aaudiber/following{/other_user}","gists_url":"https://api.github.com/users/aaudiber/gists{/gist_id}","starred_url":"https://api.github.com/users/aaudiber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaudiber/subscriptions","organizations_url":"https://api.github.com/users/aaudiber/orgs","repos_url":"https://api.github.com/users/aaudiber/repos","events_url":"https://api.github.com/users/aaudiber/events{/privacy}","received_events_url":"https://api.github.com/users/aaudiber/received_events","type":"User","site_admin":false},"body":"If the destination exists as a file we should overwrite it, similar to unix cp","created_at":"2017-03-21T23:27:30Z","updated_at":"2017-03-21T23:27:30Z","html_url":"https://github.com/Alluxio/alluxio/pull/4928#discussion_r107301213","pull_request_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928","_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/107301213"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/4928#discussion_r107301213"},"pull_request":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928"}}},"pull_request":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928","id":111469246,"html_url":"https://github.com/Alluxio/alluxio/pull/4928","diff_url":"https://github.com/Alluxio/alluxio/pull/4928.diff","patch_url":"https://github.com/Alluxio/alluxio/pull/4928.patch","issue_url":"https://api.github.com/repos/Alluxio/alluxio/issues/4928","number":4928,"state":"open","locked":false,"title":"[ALLUXIO-2633] fix copyToLocal command","user":{"login":"Dukecat0613","id":23732977,"avatar_url":"https://avatars3.githubusercontent.com/u/23732977?v=3","gravatar_id":"","url":"https://api.github.com/users/Dukecat0613","html_url":"https://github.com/Dukecat0613","followers_url":"https://api.github.com/users/Dukecat0613/followers","following_url":"https://api.github.com/users/Dukecat0613/following{/other_user}","gists_url":"https://api.github.com/users/Dukecat0613/gists{/gist_id}","starred_url":"https://api.github.com/users/Dukecat0613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dukecat0613/subscriptions","organizations_url":"https://api.github.com/users/Dukecat0613/orgs","repos_url":"https://api.github.com/users/Dukecat0613/repos","events_url":"https://api.github.com/users/Dukecat0613/events{/privacy}","received_events_url":"https://api.github.com/users/Dukecat0613/received_events","type":"User","site_admin":false},"body":"https://alluxio.atlassian.net/browse/ALLUXIO-2633\r\nbin/alluxio fs copyToLocal /LICENSE .\r\nFailed to rename /Users/aja/alluxio/..WQnkYKkm_copyToLocal_ to destination .\r\n\r\nBy adding filename to the destination file can solve the problem. ","created_at":"2017-03-19T21:38:46Z","updated_at":"2017-03-21T23:27:30Z","closed_at":null,"merged_at":null,"merge_commit_sha":"1dc5185a96c4ff821cd114ef52acc294e96ae93a","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928/commits","review_comments_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928/comments","review_comment_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/issues/4928/comments","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/2c7b68146d039086811e434839bd9aa54f96f807","head":{"label":"Dukecat0613:cpcommand-2","ref":"cpcommand-2","sha":"2c7b68146d039086811e434839bd9aa54f96f807","user":{"login":"Dukecat0613","id":23732977,"avatar_url":"https://avatars3.githubusercontent.com/u/23732977?v=3","gravatar_id":"","url":"https://api.github.com/users/Dukecat0613","html_url":"https://github.com/Dukecat0613","followers_url":"https://api.github.com/users/Dukecat0613/followers","following_url":"https://api.github.com/users/Dukecat0613/following{/other_user}","gists_url":"https://api.github.com/users/Dukecat0613/gists{/gist_id}","starred_url":"https://api.github.com/users/Dukecat0613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dukecat0613/subscriptions","organizations_url":"https://api.github.com/users/Dukecat0613/orgs","repos_url":"https://api.github.com/users/Dukecat0613/repos","events_url":"https://api.github.com/users/Dukecat0613/events{/privacy}","received_events_url":"https://api.github.com/users/Dukecat0613/received_events","type":"User","site_admin":false},"repo":{"id":85424727,"name":"alluxio","full_name":"Dukecat0613/alluxio","owner":{"login":"Dukecat0613","id":23732977,"avatar_url":"https://avatars3.githubusercontent.com/u/23732977?v=3","gravatar_id":"","url":"https://api.github.com/users/Dukecat0613","html_url":"https://github.com/Dukecat0613","followers_url":"https://api.github.com/users/Dukecat0613/followers","following_url":"https://api.github.com/users/Dukecat0613/following{/other_user}","gists_url":"https://api.github.com/users/Dukecat0613/gists{/gist_id}","starred_url":"https://api.github.com/users/Dukecat0613/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Dukecat0613/subscriptions","organizations_url":"https://api.github.com/users/Dukecat0613/orgs","repos_url":"https://api.github.com/users/Dukecat0613/repos","events_url":"https://api.github.com/users/Dukecat0613/events{/privacy}","received_events_url":"https://api.github.com/users/Dukecat0613/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Dukecat0613/alluxio","description":"Alluxio, formerly Tachyon, Unify Data at Memory Speed","fork":true,"url":"https://api.github.com/repos/Dukecat0613/alluxio","forks_url":"https://api.github.com/repos/Dukecat0613/alluxio/forks","keys_url":"https://api.github.com/repos/Dukecat0613/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Dukecat0613/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Dukecat0613/alluxio/teams","hooks_url":"https://api.github.com/repos/Dukecat0613/alluxio/hooks","issue_events_url":"https://api.github.com/repos/Dukecat0613/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/Dukecat0613/alluxio/events","assignees_url":"https://api.github.com/repos/Dukecat0613/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/Dukecat0613/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/Dukecat0613/alluxio/tags","blobs_url":"https://api.github.com/repos/Dukecat0613/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Dukecat0613/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Dukecat0613/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Dukecat0613/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Dukecat0613/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/Dukecat0613/alluxio/languages","stargazers_url":"https://api.github.com/repos/Dukecat0613/alluxio/stargazers","contributors_url":"https://api.github.com/repos/Dukecat0613/alluxio/contributors","subscribers_url":"https://api.github.com/repos/Dukecat0613/alluxio/subscribers","subscription_url":"https://api.github.com/repos/Dukecat0613/alluxio/subscription","commits_url":"https://api.github.com/repos/Dukecat0613/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Dukecat0613/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Dukecat0613/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Dukecat0613/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Dukecat0613/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/Dukecat0613/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Dukecat0613/alluxio/merges","archive_url":"https://api.github.com/repos/Dukecat0613/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Dukecat0613/alluxio/downloads","issues_url":"https://api.github.com/repos/Dukecat0613/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/Dukecat0613/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/Dukecat0613/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/Dukecat0613/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Dukecat0613/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/Dukecat0613/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/Dukecat0613/alluxio/deployments","created_at":"2017-03-18T18:52:43Z","updated_at":"2017-03-18T18:52:49Z","pushed_at":"2017-03-21T21:56:50Z","git_url":"git://github.com/Dukecat0613/alluxio.git","ssh_url":"git@github.com:Dukecat0613/alluxio.git","clone_url":"https://github.com/Dukecat0613/alluxio.git","svn_url":"https://github.com/Dukecat0613/alluxio","homepage":"http://www.alluxio.org/","size":67046,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Alluxio:master","ref":"master","sha":"94a170fdd2981695de5970b34c72dd350b72bd64","user":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars3.githubusercontent.com/u/16203694?v=3","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"repo":{"id":7276954,"name":"alluxio","full_name":"Alluxio/alluxio","owner":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars3.githubusercontent.com/u/16203694?v=3","gravatar_id":"","url":"https://api.github.com/users/Alluxio","html_url":"https://github.com/Alluxio","followers_url":"https://api.github.com/users/Alluxio/followers","following_url":"https://api.github.com/users/Alluxio/following{/other_user}","gists_url":"https://api.github.com/users/Alluxio/gists{/gist_id}","starred_url":"https://api.github.com/users/Alluxio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Alluxio/subscriptions","organizations_url":"https://api.github.com/users/Alluxio/orgs","repos_url":"https://api.github.com/users/Alluxio/repos","events_url":"https://api.github.com/users/Alluxio/events{/privacy}","received_events_url":"https://api.github.com/users/Alluxio/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Alluxio/alluxio","description":"Alluxio, formerly Tachyon, Unify Data at Memory Speed","fork":false,"url":"https://api.github.com/repos/Alluxio/alluxio","forks_url":"https://api.github.com/repos/Alluxio/alluxio/forks","keys_url":"https://api.github.com/repos/Alluxio/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Alluxio/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Alluxio/alluxio/teams","hooks_url":"https://api.github.com/repos/Alluxio/alluxio/hooks","issue_events_url":"https://api.github.com/repos/Alluxio/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/Alluxio/alluxio/events","assignees_url":"https://api.github.com/repos/Alluxio/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/Alluxio/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/Alluxio/alluxio/tags","blobs_url":"https://api.github.com/repos/Alluxio/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Alluxio/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Alluxio/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/Alluxio/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/Alluxio/alluxio/languages","stargazers_url":"https://api.github.com/repos/Alluxio/alluxio/stargazers","contributors_url":"https://api.github.com/repos/Alluxio/alluxio/contributors","subscribers_url":"https://api.github.com/repos/Alluxio/alluxio/subscribers","subscription_url":"https://api.github.com/repos/Alluxio/alluxio/subscription","commits_url":"https://api.github.com/repos/Alluxio/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/Alluxio/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/Alluxio/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/Alluxio/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/Alluxio/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Alluxio/alluxio/merges","archive_url":"https://api.github.com/repos/Alluxio/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Alluxio/alluxio/downloads","issues_url":"https://api.github.com/repos/Alluxio/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/Alluxio/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/Alluxio/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/Alluxio/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Alluxio/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/Alluxio/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/Alluxio/alluxio/deployments","created_at":"2012-12-21T17:43:46Z","updated_at":"2017-03-21T15:15:30Z","pushed_at":"2017-03-21T23:07:53Z","git_url":"git://github.com/Alluxio/alluxio.git","ssh_url":"git@github.com:Alluxio/alluxio.git","clone_url":"https://github.com/Alluxio/alluxio.git","svn_url":"https://github.com/Alluxio/alluxio","homepage":"http://www.alluxio.org/","size":67251,"stargazers_count":2882,"watchers_count":2882,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1363,"mirror_url":null,"open_issues_count":40,"forks":1363,"open_issues":40,"watchers":2882,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/4928"},"issue":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/4928"},"comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/4928/comments"},"review_comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928/comments"},"review_comment":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/4928/commits"},"statuses":{"href":"https://api.github.com/repos/Alluxio/alluxio/statuses/2c7b68146d039086811e434839bd9aa54f96f807"}}}}
{"actor":{"display_login":"aaudiber"}}