Steve Loughran created HADOOP-18961:
---------------------------------------

             Summary: add s3a command "mkbucket"
                 Key: HADOOP-18961
                 URL: https://issues.apache.org/jira/browse/HADOOP-18961
             Project: Hadoop Common
          Issue Type: Sub-task
          Components: fs/s3
    Affects Versions: 3.4.0
            Reporter: Steve Loughran
            Assignee: Steve Loughran


cloudstore has an mkbucket command
https://github.com/steveloughran/cloudstore/blob/main/src/main/site/mkbucket.md

however, its v1 api, has problems with spans and needs rework for v2. Oh, and 
it has not tests.

* move the command into hadoop-aws
* add a test or two, 
* add a mapper of  409 to bad request, as "BucketAlreadyOwnedByYouException" 
comes in as a 409.

Testing will be tricky...as well as not actually wanting to create new buckets, 
my test a/c doesn't even have the permission to do so.

Proposed tests
# invalid args must be rejected
# trying to create the current bucket must be rejected. This happens even if 
you lack the permission to create

*No actual attempts to create a new bucket*




--
This message was sent by Atlassian Jira
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: common-dev-unsubscr...@hadoop.apache.org
For additional commands, e-mail: common-dev-h...@hadoop.apache.org

Reply via email to