Skip to content

AWS: S3FileIo Integration test include UUID prefix in Prefix integration tests - #5413

Merged
szehon-ho merged 1 commit into
apache:masterfrom
amogh-jahagirdar:fix-s3-prefix-list
Aug 2, 2022
Merged

AWS: S3FileIo Integration test include UUID prefix in Prefix integration tests#5413
szehon-ho merged 1 commit into
apache:masterfrom
amogh-jahagirdar:fix-s3-prefix-list

Conversation

@amogh-jahagirdar

@amogh-jahagirdaramogh-jahagirdar commented Aug 2, 2022

Copy link
Copy Markdown
Contributor

Right now, running s3 file io integration test multiple times will lead to failures in expectations of the testPrefixList. This is because the cleanup which happens in AfterClass only cleans up under s3://bucket/uuid-prefix where uuid prefix is the random uuid created on each run of the test class. The testPrefixList is creating objects in s3://bucket/prefix-list-test. We should actually put this in s3://bucket/uuid-prefix/prefix-list-test so that After class will properly clean this up, and we can run multiple runs of the integ test successfully.

Going forward, we will also want #4855 so that issues like this can be caught earlier on. I tested this by running the AWS integ tests multiple times on a pre-existing bucket I used for iceberg-aws integration tests.

…t runs of the integration tests don't interfere with each other
@amogh-jahagirdaramogh-jahagirdar changed the title AWS: S3FileIo Integration test include UUID prefix in Prefix integration testAWS: S3FileIo Integration test include UUID prefix in Prefix integration testsAug 2, 2022
@szehon-ho
szehon-ho merged commit ebf8e18 into apache:masterAug 2, 2022
@szehon-ho

Copy link
Copy Markdown
Member

Merged, thanks @amogh-jahagirdar

@amogh-jahagirdar

Copy link
Copy Markdown
ContributorAuthor

Thanks for the review Szehon!

Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants

@amogh-jahagirdar@szehon-ho