Skip to content

Fix flaky test in RetryableS3OutputStreamTest#16639

Merged
kfaraz merged 5 commits intoapache:masterfrom
Akshat-Jain:fix-flaky-test-in-RetryableS3OutputStreamTest
Jun 24, 2024
Merged

Fix flaky test in RetryableS3OutputStreamTest#16639
kfaraz merged 5 commits intoapache:masterfrom
Akshat-Jain:fix-flaky-test-in-RetryableS3OutputStreamTest

Conversation

@Akshat-Jain
Copy link
Copy Markdown
Contributor

Description

As part of #16481, we have started uploading the chunks in parallel. That means that it's not necessary for the part that was uploaded at the last to be less than or equal to the chunkSize (as the final part could've been uploaded earlier).

This made a test in RetryableS3OutputStreamTest flaky where we were asserting that the final part should be smaller than chunk size.

This PR fixes the test, and also adds another test where the file size is such that all chunk sizes would be of equal size.


This PR has:

  • been self-reviewed.
  • added documentation for new or modified features or behaviors.
  • a release note entry in the PR description.
  • added Javadocs for most classes and all non-trivial methods. Linked related entities via Javadoc links.
  • added or updated version, license, or notice information in licenses.yaml
  • added comments explaining the "why" and the intent of the code wherever would not be obvious for an unfamiliar reader.
  • added unit tests or modified existing tests to cover new code paths, ensuring the threshold for code coverage is met.
  • added integration tests.
  • been tested in a test Druid cluster.

@kfaraz kfaraz merged commit 641f739 into apache:master Jun 24, 2024
@kfaraz kfaraz added this to the 31.0.0 milestone Oct 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants