[ 
https://issues.apache.org/jira/browse/CAMEL-22133?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

James Netherton resolved CAMEL-22133.
-------------------------------------
    Resolution: Fixed

> 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
>            Assignee: James Netherton
>            Priority: Minor
>             Fix For: 4.13.0
>
>
> 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)

Reply via email to