{"action":"created","comment":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/134367557","pull_request_review_id":57649778,"id":134367557,"diff_hunk":"@@ -1172,6 +1172,15 @@ public String toString() {\n   //\n   // Proxy related properties\n   //\n+  public static final PropertyKey PROXY_S3_WRITE_TYPE =\n+      new Builder(Name.PROXY_S3_WRITE_TYPE)\n+          .setDefaultValue(\"CACHE_THROUGH\")\n+          .setDescription(\"Write type when creating buckets and objects through S3 API. \"\n+              + \"Valid options are \"\n+              + \"`MUST_CACHE` (write will only go to Alluxio and must be stored in Alluxio), \"\n+              + \"`CACHE_THROUGH` (try to cache, write to UnderFS synchronously), \"\n+              + \"`THROUGH` (no cache, write to UnderFS synchronously).\")\n+          .build();","path":"core/common/src/main/java/alluxio/PropertyKey.java","position":12,"original_position":12,"commit_id":"074383d696883272231db334f8a9801119b6344b","original_commit_id":"eae25c8fc6a867a3b6da426345dc80b5cd891cc5","user":{"login":"uronce-cc","id":3663941,"avatar_url":"https://avatars1.githubusercontent.com/u/3663941?v=4","gravatar_id":"","url":"https://api.github.com/users/uronce-cc","html_url":"https://github.com/uronce-cc","followers_url":"https://api.github.com/users/uronce-cc/followers","following_url":"https://api.github.com/users/uronce-cc/following{/other_user}","gists_url":"https://api.github.com/users/uronce-cc/gists{/gist_id}","starred_url":"https://api.github.com/users/uronce-cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uronce-cc/subscriptions","organizations_url":"https://api.github.com/users/uronce-cc/orgs","repos_url":"https://api.github.com/users/uronce-cc/repos","events_url":"https://api.github.com/users/uronce-cc/events{/privacy}","received_events_url":"https://api.github.com/users/uronce-cc/received_events","type":"User","site_admin":false},"body":"nop","created_at":"2017-08-22T01:35:56Z","updated_at":"2017-08-22T01:35:56Z","html_url":"https://github.com/Alluxio/alluxio/pull/5914#discussion_r134367557","pull_request_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914","_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments/134367557"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/5914#discussion_r134367557"},"pull_request":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914"}}},"pull_request":{"url":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914","id":136754344,"html_url":"https://github.com/Alluxio/alluxio/pull/5914","diff_url":"https://github.com/Alluxio/alluxio/pull/5914.diff","patch_url":"https://github.com/Alluxio/alluxio/pull/5914.patch","issue_url":"https://api.github.com/repos/Alluxio/alluxio/issues/5914","number":5914,"state":"open","locked":false,"title":"[ALLUXIO-2997] Implement PUT bucket in S3RestServiceHandler.","user":{"login":"uronce-cc","id":3663941,"avatar_url":"https://avatars1.githubusercontent.com/u/3663941?v=4","gravatar_id":"","url":"https://api.github.com/users/uronce-cc","html_url":"https://github.com/uronce-cc","followers_url":"https://api.github.com/users/uronce-cc/followers","following_url":"https://api.github.com/users/uronce-cc/following{/other_user}","gists_url":"https://api.github.com/users/uronce-cc/gists{/gist_id}","starred_url":"https://api.github.com/users/uronce-cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uronce-cc/subscriptions","organizations_url":"https://api.github.com/users/uronce-cc/orgs","repos_url":"https://api.github.com/users/uronce-cc/repos","events_url":"https://api.github.com/users/uronce-cc/events{/privacy}","received_events_url":"https://api.github.com/users/uronce-cc/received_events","type":"User","site_admin":false},"body":"This PR implemented http://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUT.html in Alluxio Proxy.\r\n\r\nThe following Python script using AWS S3 Python SDK to create a bucket works.\r\n\r\n```python\r\nimport boto\r\nimport boto.s3.connection\r\naccess_key = 'put your access key here!'\r\nsecret_key = 'put your secret key here!'\r\n\r\nconn = boto.connect_s3(\r\n    aws_access_key_id = access_key,\r\n    aws_secret_access_key = secret_key,\r\n    host = 'localhost',\r\n    port = 39999,\r\n    path = '/api/v1/s3',\r\n    is_secure=False,\r\n    calling_format = boto.s3.connection.OrdinaryCallingFormat(),\r\n)\r\n\r\n# This will succeed.\r\nconn.create_bucket('not-mount-point')\r\n\r\n# This will raise an error formatted as XML with error message:\r\n# \"The specified bucket is not a directory directly under a mount point\".\r\ntry:\r\n    conn.create_bucket('not-mount-point:bucket')\r\nexcept boto.exception.S3ResponseError as e:\r\n    print(e)\r\n```","created_at":"2017-08-21T12:55:56Z","updated_at":"2017-08-22T01:35:56Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7839e61764cfb7e5dab30027ffef4c639250b164","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914/commits","review_comments_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914/comments","review_comment_url":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Alluxio/alluxio/issues/5914/comments","statuses_url":"https://api.github.com/repos/Alluxio/alluxio/statuses/074383d696883272231db334f8a9801119b6344b","head":{"label":"uronce-cc:s3","ref":"s3","sha":"074383d696883272231db334f8a9801119b6344b","user":{"login":"uronce-cc","id":3663941,"avatar_url":"https://avatars1.githubusercontent.com/u/3663941?v=4","gravatar_id":"","url":"https://api.github.com/users/uronce-cc","html_url":"https://github.com/uronce-cc","followers_url":"https://api.github.com/users/uronce-cc/followers","following_url":"https://api.github.com/users/uronce-cc/following{/other_user}","gists_url":"https://api.github.com/users/uronce-cc/gists{/gist_id}","starred_url":"https://api.github.com/users/uronce-cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uronce-cc/subscriptions","organizations_url":"https://api.github.com/users/uronce-cc/orgs","repos_url":"https://api.github.com/users/uronce-cc/repos","events_url":"https://api.github.com/users/uronce-cc/events{/privacy}","received_events_url":"https://api.github.com/users/uronce-cc/received_events","type":"User","site_admin":false},"repo":{"id":52493150,"name":"alluxio","full_name":"uronce-cc/alluxio","owner":{"login":"uronce-cc","id":3663941,"avatar_url":"https://avatars1.githubusercontent.com/u/3663941?v=4","gravatar_id":"","url":"https://api.github.com/users/uronce-cc","html_url":"https://github.com/uronce-cc","followers_url":"https://api.github.com/users/uronce-cc/followers","following_url":"https://api.github.com/users/uronce-cc/following{/other_user}","gists_url":"https://api.github.com/users/uronce-cc/gists{/gist_id}","starred_url":"https://api.github.com/users/uronce-cc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/uronce-cc/subscriptions","organizations_url":"https://api.github.com/users/uronce-cc/orgs","repos_url":"https://api.github.com/users/uronce-cc/repos","events_url":"https://api.github.com/users/uronce-cc/events{/privacy}","received_events_url":"https://api.github.com/users/uronce-cc/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/uronce-cc/alluxio","description":"Memory-Centric Virtual Distributed Storage System","fork":true,"url":"https://api.github.com/repos/uronce-cc/alluxio","forks_url":"https://api.github.com/repos/uronce-cc/alluxio/forks","keys_url":"https://api.github.com/repos/uronce-cc/alluxio/keys{/key_id}","collaborators_url":"https://api.github.com/repos/uronce-cc/alluxio/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/uronce-cc/alluxio/teams","hooks_url":"https://api.github.com/repos/uronce-cc/alluxio/hooks","issue_events_url":"https://api.github.com/repos/uronce-cc/alluxio/issues/events{/number}","events_url":"https://api.github.com/repos/uronce-cc/alluxio/events","assignees_url":"https://api.github.com/repos/uronce-cc/alluxio/assignees{/user}","branches_url":"https://api.github.com/repos/uronce-cc/alluxio/branches{/branch}","tags_url":"https://api.github.com/repos/uronce-cc/alluxio/tags","blobs_url":"https://api.github.com/repos/uronce-cc/alluxio/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/uronce-cc/alluxio/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/uronce-cc/alluxio/git/refs{/sha}","trees_url":"https://api.github.com/repos/uronce-cc/alluxio/git/trees{/sha}","statuses_url":"https://api.github.com/repos/uronce-cc/alluxio/statuses/{sha}","languages_url":"https://api.github.com/repos/uronce-cc/alluxio/languages","stargazers_url":"https://api.github.com/repos/uronce-cc/alluxio/stargazers","contributors_url":"https://api.github.com/repos/uronce-cc/alluxio/contributors","subscribers_url":"https://api.github.com/repos/uronce-cc/alluxio/subscribers","subscription_url":"https://api.github.com/repos/uronce-cc/alluxio/subscription","commits_url":"https://api.github.com/repos/uronce-cc/alluxio/commits{/sha}","git_commits_url":"https://api.github.com/repos/uronce-cc/alluxio/git/commits{/sha}","comments_url":"https://api.github.com/repos/uronce-cc/alluxio/comments{/number}","issue_comment_url":"https://api.github.com/repos/uronce-cc/alluxio/issues/comments{/number}","contents_url":"https://api.github.com/repos/uronce-cc/alluxio/contents/{+path}","compare_url":"https://api.github.com/repos/uronce-cc/alluxio/compare/{base}...{head}","merges_url":"https://api.github.com/repos/uronce-cc/alluxio/merges","archive_url":"https://api.github.com/repos/uronce-cc/alluxio/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/uronce-cc/alluxio/downloads","issues_url":"https://api.github.com/repos/uronce-cc/alluxio/issues{/number}","pulls_url":"https://api.github.com/repos/uronce-cc/alluxio/pulls{/number}","milestones_url":"https://api.github.com/repos/uronce-cc/alluxio/milestones{/number}","notifications_url":"https://api.github.com/repos/uronce-cc/alluxio/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/uronce-cc/alluxio/labels{/name}","releases_url":"https://api.github.com/repos/uronce-cc/alluxio/releases{/id}","deployments_url":"https://api.github.com/repos/uronce-cc/alluxio/deployments","created_at":"2016-02-25T03:13:56Z","updated_at":"2016-02-25T03:14:00Z","pushed_at":"2017-08-22T01:12:57Z","git_url":"git://github.com/uronce-cc/alluxio.git","ssh_url":"git@github.com:uronce-cc/alluxio.git","clone_url":"https://github.com/uronce-cc/alluxio.git","svn_url":"https://github.com/uronce-cc/alluxio","homepage":"http://www.alluxio.org/","size":81237,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_projects":true,"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:s3","ref":"s3","sha":"1ac6546192fe259ae7ca1cd5fd0972b36e63120e","user":{"login":"Alluxio","id":16203694,"avatar_url":"https://avatars0.githubusercontent.com/u/16203694?v=4","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://avatars0.githubusercontent.com/u/16203694?v=4","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-08-21T09:11:56Z","pushed_at":"2017-08-22T01:23:59Z","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":80866,"stargazers_count":3107,"watchers_count":3107,"language":"Java","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":true,"forks_count":1564,"mirror_url":null,"open_issues_count":30,"forks":1564,"open_issues":30,"watchers":3107,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914"},"html":{"href":"https://github.com/Alluxio/alluxio/pull/5914"},"issue":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/5914"},"comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/issues/5914/comments"},"review_comments":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914/comments"},"review_comment":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Alluxio/alluxio/pulls/5914/commits"},"statuses":{"href":"https://api.github.com/repos/Alluxio/alluxio/statuses/074383d696883272231db334f8a9801119b6344b"}}}}
{"actor":{"display_login":"uronce-cc"}}