[
https://issues.apache.org/jira/browse/HADOOP-13074?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15264963#comment-15264963
]
Swagat Behera commented on HADOOP-13074:
----------------------------------------
Hi [~cnauroth] I can contribute to the patch but this jira looks wrong for this
patch.
To clarify, I had created this patch to point an issue I was hitting.
What we have agreed on, is we need a way for the s3a tests to throw an
exception("stating Failing test since Non empty bucket found") if someone by
mistake entered a non empty s3 bucket in the conf file.
I will create a separate jira for doing this.
> TestS3AContractRootDir#testListEmptyRootDirectory fails with
> java.io.IOException: Root directory operation rejected
> -------------------------------------------------------------------------------------------------------------------
>
> Key: HADOOP-13074
> URL: https://issues.apache.org/jira/browse/HADOOP-13074
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs/s3, test
> Affects Versions: 3.0.0
> Reporter: Swagat Behera
> Assignee: Swagat Behera
>
> TestS3AContractRootDir#testListEmptyRootDirectory fails with
> java.io.IOException: Root directory operation rejected .
> Following
> https://github.com/apache/hadoop/blob/trunk/hadoop-tools/hadoop-aws/src/site/markdown/tools/hadoop-aws/index.md,
> I had inputted a non empty S3 bucket with appropriate keys.
> This test gets the status under the root and tries to delete all the folders
> under that iteratively along with the root folder.
> When it tries to delete the root folder,
> ContractTestUtils::rejectRootOperation() throws "Root directory operation
> rejected" exception. This is bound to happen since the allowRootOperation
> flag is not set.
> [~cnauroth]
> Please let me know your comments on this. It seems that this test will always
> fail until we start using
> ContractTestUtils::assertDeleted(allowRootOperations=True) .
> + [~fabbri], [~mackrorysd] for FYI
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]