You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "James Netherton (Jira)" <ji...@apache.org> on 2025/06/03 10:02:00 UTC
[jira] [Created] (CAMEL-22133) camel-platform-http-vertx: VertxPlatformHttpServer.stopVertx logic is incorrect
James Netherton created CAMEL-22133:
---------------------------------------
Summary: camel-platform-http-vertx: VertxPlatformHttpServer.stopVertx logic is incorrect
Key: CAMEL-22133
URL: https://issues.apache.org/jira/browse/CAMEL-22133
Project: Camel
Issue Type: Improvement
Components: camel-platform-http-vertx
Reporter: James Netherton
I think the logic in VertxPlatformHttpServer.stopVertx needs tweaking:
https://github.com/apache/camel/blob/d47b32ab5984927f551a0e4103761019ac8ad5b9/components/camel-platform-http-vertx/src/main/java/org/apache/camel/component/platform/http/vertx/VertxPlatformHttpServer.java#L292-L294
The if condition should probably be: this.vertx == null || !this.localVertx.
Right now, it means that the local managed Vert.x instance is never closed. Or if you provide a shared Vert.x via the registry, then it gets wrongly closed (i.e shared Vert.x should be left to users to close manually).
--
This message was sent by Atlassian Jira
(v8.20.10#820010)