Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updates to the S3 sink to speed up the unit test/build time #3203

Merged
merged 1 commit into from
Aug 22, 2023

Conversation

dlvenable
Copy link
Member

Description

This PR includes changes which reduce the total time to build the s3-sink project from over 2minutes to about 15 seconds on my machine.

  • Use the Duration class instead of a nebulous long to send duration times around. This can allow for millisecond resolution.
  • Inject the retry sleep time into S3SinkService so that unit test can take much less time.
  • Using mocking in ThresholdCheckTest to avoid unnecessary sleeps.

Issues Resolved

N/A

Check List

  • New functionality includes testing.
  • New functionality has a documentation issue. Please link to it in this PR.
    • New functionality has javadoc added
  • Commits are signed with a real name per the DCO

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

…w major changes - use the Duration class instead of a nebulous long to have millisecond options and clarity; inject the retry sleep time so that the tests can sleep for shorter time; using mocking where possible to avoid unnecessary sleeps.

Signed-off-by: David Venable <[email protected]>
@dlvenable dlvenable merged commit ffa8c4a into opensearch-project:main Aug 22, 2023
24 checks passed
@dlvenable dlvenable deleted the s3-sink-test-speed-up branch November 13, 2023 19:38
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