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

Remove retries from executor metrics test fix; use the pre-existing countdown latch in GreetService instead #5109

Merged
merged 6 commits into from Oct 10, 2022

Conversation

tjquinno
Copy link
Member

@tjquinno tjquinno commented Oct 6, 2022

Resolves #4982

Daniel's recent PR improved on my original one that used retries, but retrying is not the correct approach here.

In fact, we cannot depend on the reported values changing as we would like.

The executor service metrics we implement rely on ThreadPoolExecutor methods which are documented as returning estimates of task counts, etc. Even if retry seems to help, there is no guarantee that the numbers reported by ThreadPoolExecutor - and therefore the values reported by our metrics - will change as a result of running one async task in the executor.

We can still check to make sure that the expected metrics are created; we just cannot reliably test that the values increase.

@tjquinno tjquinno marked this pull request as ready for review October 7, 2022 16:48
@tjquinno tjquinno merged commit 9966941 into helidon-io:main Oct 10, 2022
@tjquinno tjquinno deleted the metrics-test-fixes-main branch October 10, 2022 11:39
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