Uploaded image for project: 'Hadoop Common'
  1. Hadoop Common
  2. HADOOP-13074

TestS3AContractRootDir#testListEmptyRootDirectory fails with java.io.IOException: Root directory operation rejected

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Not A Problem
    • 3.0.0-alpha1
    • None
    • fs/s3, test
    • None

    Description

      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

      Attachments

        Issue Links

          Activity

            People

              Swagat Swagat Behera
              Swagat Swagat Behera
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: