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

Use positive numbers in S3DlqWriterTest for consistent test success. #4443

Merged

Conversation

dlvenable
Copy link
Member

Description

With the recent change in #4403, the DLQ write does not write for empty objects. The unit tests use a random value which would sometimes generate 0 entries. This is causing test failures and flakiness.

This change always uses a value of at least 2. I chose 2 so that all tests run with multiple values.

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.

Signed-off-by: David Venable <dlv@amazon.com>
Copy link
Member

@graytaylor0 graytaylor0 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good catch thanks for fixing this!

@dlvenable dlvenable merged commit f42225b into opensearch-project:main Apr 22, 2024
47 checks passed
opensearch-trigger-bot bot pushed a commit that referenced this pull request Apr 22, 2024
…4443)

Signed-off-by: David Venable <dlv@amazon.com>
(cherry picked from commit f42225b)
srikanthjg pushed a commit to srikanthjg/data-prepper that referenced this pull request Apr 24, 2024
dlvenable added a commit that referenced this pull request Apr 24, 2024
…4443) (#4448)

Signed-off-by: David Venable <dlv@amazon.com>
(cherry picked from commit f42225b)

Co-authored-by: David Venable <dlv@amazon.com>
@dlvenable dlvenable deleted the dlq-writer-flaky-test-fix branch May 3, 2024 23:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants