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

[4.x] Add some retries because post-request metrics updates occur after the response is sent #5122

Merged
merged 2 commits into from Oct 10, 2022

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Oct 7, 2022

Resolves #5030

Two tests in this class involve asynchronous activity.

Helidon updates some KPI metrics (such as the current number of in-flight requests) after it sends the response. As a result, thread scheduling could allow the test to get the response and check the metrics before the server has updated those metrics. There is no way to synchronize the test with the server's processing, so use retries in key places rather than optimistic fixed-length sleeps.

@tjquinno tjquinno changed the title Add some retries because post-request metrics update occur after the response is sent [4.x] Add some retries because post-request metrics update occur after the response is sent Oct 10, 2022
@tjquinno tjquinno changed the title [4.x] Add some retries because post-request metrics update occur after the response is sent [4.x] Add some retries because post-request metrics updates occur after the response is sent Oct 10, 2022
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.

None yet

2 participants