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

gRPC Dev UI - fix problems when reusing the existing HTTP server #30263

Merged
merged 1 commit into from
Jan 10, 2023

Conversation

mkouba
Copy link
Contributor

@mkouba mkouba commented Jan 9, 2023

@@ -173,6 +174,8 @@ private void buildGrpcServer(Vertx vertx, GrpcServerConfiguration configuration,
}
});
shutdown.addShutdownTask(route::remove); // remove this route at shutdown, this should reset it

initHealthStorage();
Copy link
Contributor Author

Choose a reason for hiding this comment

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

@alesj This fixed the class loading problem - we need to initialize the GrpcHealthStorage eagerly for quarkus.grpc.server.use-separate-server=false (if needed).

Copy link
Contributor

Choose a reason for hiding this comment

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

This is strange ... but ... if it's needed, then sure.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes, it is. But class loading in the dev mode (+ dev ui) is tricky.

- i.e. when quarkus.grpc.server.use-separate-server=false is used
- fixes quarkusio#30244
@mkouba mkouba marked this pull request as ready for review January 10, 2023 08:23
@mkouba mkouba requested review from cescoffier and alesj and removed request for cescoffier January 10, 2023 08:23
@geoand geoand merged commit 9ecc659 into quarkusio:main Jan 10, 2023
@quarkus-bot quarkus-bot bot added this to the 2.16 - main milestone Jan 10, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Dev UI for GRPC fails
3 participants