Skip to content

Conversation

@alexcams
Copy link
Contributor

The test was waiting for auto-flusher to be executed and flushed after 0.6s (0.5s of auto-flusher cycle + 0.1s of grace period. Depending on thread scheduling, this 0.6s wait was not always sufficient for the flush to complete before assertions were checked, causing the test to fail.

The sleep duration has been increased to ensure the auto-flush mechanism is executed at least once.

Thanks for contributing to Logstash! If you haven't already signed our CLA, here's a handy link: https://www.elastic.co/contributor-agreement/

Copy link
Member

@jsvd jsvd left a comment

Choose a reason for hiding this comment

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

LGTM

@alexcams alexcams merged commit 08ce006 into logstash-plugins:main Oct 27, 2025
3 checks passed
@alexcams alexcams changed the title CI-Fix:Increment sleep duration to ensure auto-flush mechanism runs before assertion CI-Fix:Add exponential backoff retries to ensure auto-flush mechanism runs before assertion Oct 27, 2025
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.

2 participants