{"action":"created","comment":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/comments/51436978","id":51436978,"diff_hunk":"@@ -41,4 +41,20 @@ public void chgrpTest() throws IOException, TachyonException {\n     group = mFileSystem.getStatus(new TachyonURI(\"/testFile\")).getGroupName();\n     Assert.assertEquals(\"group2\", group);\n   }\n+\n+  @Test\n+  public void chgrpRecursiveTest() throws IOException, TachyonException {\n+    clearLoginUser();\n+    FileSystemTestUtils.createByteFile(mFileSystem, \"/testDir/testFile\", WriteType.MUST_CACHE, 10);\n+    // \"chgrp -R group1 /testDir\" should apply to both dir and child file\n+    mFsShell.run(\"chgrp\", \"-R\", \"group1\", \"/testDir\");\n+    String group = mFileSystem.getStatus(new TachyonURI(\"/testDir\")).getGroupName();\n+    Assert.assertEquals(\"group1\", group);\n+    group = mFileSystem.getStatus(new TachyonURI(\"/testDir/testFile\")).getGroupName();\n+    Assert.assertEquals(\"group1\", group);\n+    // chgrp to another group.\n+    mFsShell.run(\"chgrp\", \"-R\", \"group2\", \"/testDir\");","path":"tests/src/test/java/tachyon/shell/command/ChgrpCommandTest.java","position":16,"original_position":16,"commit_id":"12592214c68761ba9bbad894467d02ec91f7a8c1","original_commit_id":"12592214c68761ba9bbad894467d02ec91f7a8c1","user":{"login":"ifcharming","id":4342151,"avatar_url":"https://avatars.githubusercontent.com/u/4342151?v=3","gravatar_id":"","url":"https://api.github.com/users/ifcharming","html_url":"https://github.com/ifcharming","followers_url":"https://api.github.com/users/ifcharming/followers","following_url":"https://api.github.com/users/ifcharming/following{/other_user}","gists_url":"https://api.github.com/users/ifcharming/gists{/gist_id}","starred_url":"https://api.github.com/users/ifcharming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifcharming/subscriptions","organizations_url":"https://api.github.com/users/ifcharming/orgs","repos_url":"https://api.github.com/users/ifcharming/repos","events_url":"https://api.github.com/users/ifcharming/events{/privacy}","received_events_url":"https://api.github.com/users/ifcharming/received_events","type":"User","site_admin":false},"body":"No, I think there is a problem in DefaultParser with stopAtNonOption that -options must come before arguments.\r\nI think it's fine here because the usage clearly says \"chgrp -R <group> <path>\"","created_at":"2016-02-01T16:05:34Z","updated_at":"2016-02-01T16:05:34Z","html_url":"https://github.com/amplab/tachyon/pull/2604#discussion_r51436978","pull_request_url":"https://api.github.com/repos/amplab/tachyon/pulls/2604","_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments/51436978"},"html":{"href":"https://github.com/amplab/tachyon/pull/2604#discussion_r51436978"},"pull_request":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2604"}}},"pull_request":{"url":"https://api.github.com/repos/amplab/tachyon/pulls/2604","id":57589042,"html_url":"https://github.com/amplab/tachyon/pull/2604","diff_url":"https://github.com/amplab/tachyon/pull/2604.diff","patch_url":"https://github.com/amplab/tachyon/pull/2604.patch","issue_url":"https://api.github.com/repos/amplab/tachyon/issues/2604","number":2604,"state":"open","locked":false,"title":"[TACHYON-1673] Add -R option in shell cmd chgrp.","user":{"login":"ifcharming","id":4342151,"avatar_url":"https://avatars.githubusercontent.com/u/4342151?v=3","gravatar_id":"","url":"https://api.github.com/users/ifcharming","html_url":"https://github.com/ifcharming","followers_url":"https://api.github.com/users/ifcharming/followers","following_url":"https://api.github.com/users/ifcharming/following{/other_user}","gists_url":"https://api.github.com/users/ifcharming/gists{/gist_id}","starred_url":"https://api.github.com/users/ifcharming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifcharming/subscriptions","organizations_url":"https://api.github.com/users/ifcharming/orgs","repos_url":"https://api.github.com/users/ifcharming/repos","events_url":"https://api.github.com/users/ifcharming/events{/privacy}","received_events_url":"https://api.github.com/users/ifcharming/received_events","type":"User","site_admin":false},"body":"https://tachyon.atlassian.net/browse/TACHYON-1673\r\n\r\nThis PR supports the -R option in chgrp, chmod and chown.\r\n","created_at":"2016-01-29T00:25:49Z","updated_at":"2016-02-01T16:05:34Z","closed_at":null,"merged_at":null,"merge_commit_sha":"a9f83bc311179e307de7d04f255e094d5c440453","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/amplab/tachyon/pulls/2604/commits","review_comments_url":"https://api.github.com/repos/amplab/tachyon/pulls/2604/comments","review_comment_url":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}","comments_url":"https://api.github.com/repos/amplab/tachyon/issues/2604/comments","statuses_url":"https://api.github.com/repos/amplab/tachyon/statuses/12592214c68761ba9bbad894467d02ec91f7a8c1","head":{"label":"ifcharming:add-recursive-in-shell","ref":"add-recursive-in-shell","sha":"12592214c68761ba9bbad894467d02ec91f7a8c1","user":{"login":"ifcharming","id":4342151,"avatar_url":"https://avatars.githubusercontent.com/u/4342151?v=3","gravatar_id":"","url":"https://api.github.com/users/ifcharming","html_url":"https://github.com/ifcharming","followers_url":"https://api.github.com/users/ifcharming/followers","following_url":"https://api.github.com/users/ifcharming/following{/other_user}","gists_url":"https://api.github.com/users/ifcharming/gists{/gist_id}","starred_url":"https://api.github.com/users/ifcharming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifcharming/subscriptions","organizations_url":"https://api.github.com/users/ifcharming/orgs","repos_url":"https://api.github.com/users/ifcharming/repos","events_url":"https://api.github.com/users/ifcharming/events{/privacy}","received_events_url":"https://api.github.com/users/ifcharming/received_events","type":"User","site_admin":false},"repo":{"id":50484991,"name":"tachyon","full_name":"ifcharming/tachyon","owner":{"login":"ifcharming","id":4342151,"avatar_url":"https://avatars.githubusercontent.com/u/4342151?v=3","gravatar_id":"","url":"https://api.github.com/users/ifcharming","html_url":"https://github.com/ifcharming","followers_url":"https://api.github.com/users/ifcharming/followers","following_url":"https://api.github.com/users/ifcharming/following{/other_user}","gists_url":"https://api.github.com/users/ifcharming/gists{/gist_id}","starred_url":"https://api.github.com/users/ifcharming/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ifcharming/subscriptions","organizations_url":"https://api.github.com/users/ifcharming/orgs","repos_url":"https://api.github.com/users/ifcharming/repos","events_url":"https://api.github.com/users/ifcharming/events{/privacy}","received_events_url":"https://api.github.com/users/ifcharming/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ifcharming/tachyon","description":"Memory Centric Reliable Distributed Storage","fork":true,"url":"https://api.github.com/repos/ifcharming/tachyon","forks_url":"https://api.github.com/repos/ifcharming/tachyon/forks","keys_url":"https://api.github.com/repos/ifcharming/tachyon/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ifcharming/tachyon/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ifcharming/tachyon/teams","hooks_url":"https://api.github.com/repos/ifcharming/tachyon/hooks","issue_events_url":"https://api.github.com/repos/ifcharming/tachyon/issues/events{/number}","events_url":"https://api.github.com/repos/ifcharming/tachyon/events","assignees_url":"https://api.github.com/repos/ifcharming/tachyon/assignees{/user}","branches_url":"https://api.github.com/repos/ifcharming/tachyon/branches{/branch}","tags_url":"https://api.github.com/repos/ifcharming/tachyon/tags","blobs_url":"https://api.github.com/repos/ifcharming/tachyon/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ifcharming/tachyon/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ifcharming/tachyon/git/refs{/sha}","trees_url":"https://api.github.com/repos/ifcharming/tachyon/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ifcharming/tachyon/statuses/{sha}","languages_url":"https://api.github.com/repos/ifcharming/tachyon/languages","stargazers_url":"https://api.github.com/repos/ifcharming/tachyon/stargazers","contributors_url":"https://api.github.com/repos/ifcharming/tachyon/contributors","subscribers_url":"https://api.github.com/repos/ifcharming/tachyon/subscribers","subscription_url":"https://api.github.com/repos/ifcharming/tachyon/subscription","commits_url":"https://api.github.com/repos/ifcharming/tachyon/commits{/sha}","git_commits_url":"https://api.github.com/repos/ifcharming/tachyon/git/commits{/sha}","comments_url":"https://api.github.com/repos/ifcharming/tachyon/comments{/number}","issue_comment_url":"https://api.github.com/repos/ifcharming/tachyon/issues/comments{/number}","contents_url":"https://api.github.com/repos/ifcharming/tachyon/contents/{+path}","compare_url":"https://api.github.com/repos/ifcharming/tachyon/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ifcharming/tachyon/merges","archive_url":"https://api.github.com/repos/ifcharming/tachyon/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ifcharming/tachyon/downloads","issues_url":"https://api.github.com/repos/ifcharming/tachyon/issues{/number}","pulls_url":"https://api.github.com/repos/ifcharming/tachyon/pulls{/number}","milestones_url":"https://api.github.com/repos/ifcharming/tachyon/milestones{/number}","notifications_url":"https://api.github.com/repos/ifcharming/tachyon/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ifcharming/tachyon/labels{/name}","releases_url":"https://api.github.com/repos/ifcharming/tachyon/releases{/id}","deployments_url":"https://api.github.com/repos/ifcharming/tachyon/deployments","created_at":"2016-01-27T05:50:36Z","updated_at":"2016-01-27T05:50:40Z","pushed_at":"2016-01-29T22:58:41Z","git_url":"git://github.com/ifcharming/tachyon.git","ssh_url":"git@github.com:ifcharming/tachyon.git","clone_url":"https://github.com/ifcharming/tachyon.git","svn_url":"https://github.com/ifcharming/tachyon","homepage":"http://tachyon-project.org","size":39534,"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":"amplab:master","ref":"master","sha":"08ae4daa6d11d689472311ca34f9d05e25562b4c","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}","deployments_url":"https://api.github.com/repos/amplab/tachyon/deployments","created_at":"2012-12-21T17:43:46Z","updated_at":"2016-01-31T03:48:57Z","pushed_at":"2016-02-01T15:29:08Z","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":47984,"stargazers_count":1934,"watchers_count":1934,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":761,"mirror_url":null,"open_issues_count":26,"forks":761,"open_issues":26,"watchers":1934,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2604"},"html":{"href":"https://github.com/amplab/tachyon/pull/2604"},"issue":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2604"},"comments":{"href":"https://api.github.com/repos/amplab/tachyon/issues/2604/comments"},"review_comments":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2604/comments"},"review_comment":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/amplab/tachyon/pulls/2604/commits"},"statuses":{"href":"https://api.github.com/repos/amplab/tachyon/statuses/12592214c68761ba9bbad894467d02ec91f7a8c1"}}}}