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

ISPN-12918 Rest stats requests block the Netty IO thread #9219

Merged
merged 1 commit into from Apr 8, 2021

Conversation

danberindei
Copy link
Member

https://issues.redhat.com/browse/ISPN-12918

Process metrics endpoint requests on a blocking executor thread.

Copy link
Member

@wburns wburns left a comment

Choose a reason for hiding this comment

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

Just a minor thing. The part I am confused is how this wasn't caught by blockhound... Do we not have a test for this code path ?

Process metrics endpoint requests on a blocking executor thread.
@danberindei
Copy link
Member Author

Updated @wburns

I'm not sure why BlockHound didn't catch it, we have an integration test that should touch this API: RestMetricsResource

@wburns wburns merged commit 5a360f6 into infinispan:master Apr 8, 2021
@wburns
Copy link
Member

wburns commented Apr 8, 2021

Integrated into master, thanks @danberindei !

@danberindei
Copy link
Member Author

@wburns found out why BlockHound didn't detect it: the only test for REST metrics is in server/tests, where BlockHound isn't enabled. I created ISPN-12918 to add a test in server/rest, but I'm not sure who will actually write the test :)

@danberindei danberindei deleted the ISPN-12918_stats_blocking branch April 12, 2021 11:01
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants