-
Notifications
You must be signed in to change notification settings - Fork 172
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
HTTP random port not working with MQTT client connector #778
Comments
Thanks @phillip-kruger ! I will have a look today. |
So, I had a look and it's more tricky than expected. It may not be related to SmallRye Reactive Messaging (directly). It works with Quarkus 1.7.3.Final but not since 1.8.0. In between, Vert.x Core changed how port 0 is handled. It may have introduced this new bug. There are also recent changes in the MQTT client regarding when the connection is done. @vietj do you see any reason why with Vert.x 3.9.3, the HTTP server configured on the port 0 fails with a bind exception? |
@phillip-kruger can you adapt the reproducer to use only Vert.x ? that will make it easier for us to debug |
can you elaborate on how to use the reproducer ? the only thing I see is a single class @ApplicationScoped
public class ExampleResource {
@Incoming("bla")
public CompletionStage<Void> bla(Message<byte[]> message){
return message.ack();
}
} and nothing else |
ah ok it is failure to startup |
is that possible to run it with a main in the IDE ? |
there are no instructions in this project for creating an MQTT server , so instead I used
can you give the steps to reproduce the issue ? |
This is a Quarkus issue. See quarkusio/quarkus#12401. |
This is a quarkus bug. When using MQTT and vertx, and setting the http port to random, the application fails to start up.
code-with-quarkus.zip
Reproducer attached.
The text was updated successfully, but these errors were encountered: