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

Vert.x EventLoop Thread used on JAX-RS methods with Undertow #7778

Closed
bcluap opened this issue Mar 11, 2020 · 5 comments · Fixed by #7798
Closed

Vert.x EventLoop Thread used on JAX-RS methods with Undertow #7778

bcluap opened this issue Mar 11, 2020 · 5 comments · Fixed by #7798
Assignees
Labels
kind/bug Something isn't working priority/blocker
Milestone

Comments

@bcluap
Copy link

bcluap commented Mar 11, 2020

Describe the bug
The second HTTP request to an JAX-RS endpoint after doing a live reload results in the vert.x eventloop thread pool being used for all subsequent requests on the JAX-RS endpoint.

Expected behavior
The worker thread pool should always be used

Actual behavior
The thread pool changes to the eventloop pool after a live reload

To Reproduce
Steps to reproduce the behavior:
git clone https://github.com/bcluap/quarkus.git
cd quarkus/getting-started/
mvn quarkus:dev

Then:
curl http://localhost:8080/test --> uses executor

Then:
Make a change to the Test.java file and save it

Then:
curl http://localhost:8080/test --> uses executor
curl http://localhost:8080/test --> uses eventloop

Configuration

Empty application.properties

I can only reproduce this when the undertow servlet extension is in the project

Screenshots
image

Environment (please complete the following information):
java -version
openjdk version "11.0.5" 2019-10-15
OpenJDK Runtime Environment (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04)
OpenJDK 64-Bit Server VM (build 11.0.5+10-post-Ubuntu-0ubuntu1.118.04, mixed mode, sharing)
paul@PCBLaptop:/Source/quarkus/getting-started$ uname -a
Linux PCBLaptop 4.15.0-74-generic #84-Ubuntu SMP Thu Dec 19 08:06:28 UTC 2019 x86_64 x86_64 x86_64 GNU/Linux

Additional context
Cannot reproduce without undertow

@bcluap bcluap added the kind/bug Something isn't working label Mar 11, 2020
@gsmet
Copy link
Member

gsmet commented Mar 11, 2020

/cc @stuartwdouglas @FroMage

@gsmet gsmet added this to the 1.3.0.Final milestone Mar 11, 2020
@gsmet
Copy link
Member

gsmet commented Mar 11, 2020

@bcluap a bit unrelated but there's a message bootstrap classpath not set in conjunction with.... What's that? It doesn't look like expected either or is it?

@bcluap
Copy link
Author

bcluap commented Mar 11, 2020

Thats just an issue in the POM. Fixed that but same bug still presents itself

@FroMage
Copy link
Member

FroMage commented Mar 11, 2020

Yeah, I can reproduce. It alternates between worker and io thread, when I keep hitting the service.

@FroMage
Copy link
Member

FroMage commented Mar 11, 2020

This doesn't happen when not using undertow.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working priority/blocker
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants