Skip to content

Restarts in DevMode generate a warning about multiple Vertx instance #4720

@machi1990

Description

@machi1990

Describe the bug
In dev mode, we have this warning

WARNING [io.ver.cor.imp.VertxImpl] (vert.x-worker-thread-1) You're already on a Vert.x context, are you sure you want to create a new Vertx instance

Expected behavior
No warning message

Actual behavior
The warning message is logged on each restart

2019-10-21 14:41:34,882 INFO  [io.quarkus] (main) Quarkus 999-SNAPSHOT started in 1.158s. Listening on: http://0.0.0.0:8080
2019-10-21 14:41:34,882 INFO  [io.quarkus] (main) Profile dev activated. Live Coding activated.
2019-10-21 14:41:34,882 INFO  [io.quarkus] (main) Installed features: [cdi, resteasy, smallrye-context-propagation, smallrye-reactive-streams-operators, vertx]
2019-10-21 14:41:57,488 INFO  [io.qua.dev] (vert.x-worker-thread-0) File change detected: /tmp/foo/src/main/resources/application.properties
2019-10-21 14:41:57,532 INFO  [io.quarkus] (vert.x-worker-thread-0) Quarkus stopped in 0.043s
2019-10-21 14:41:57,533 INFO  [io.qua.dep.QuarkusAugmentor] (vert.x-worker-thread-0) Beginning quarkus augmentation
2019-10-21 14:41:57,656 INFO  [io.qua.resteasy] (build-3) Resteasy running without servlet container.
2019-10-21 14:41:57,656 INFO  [io.qua.resteasy] (build-3) - Add quarkus-undertow to run Resteasy within a servlet container
2019-10-21 14:41:57,683 INFO  [io.qua.dep.QuarkusAugmentor] (vert.x-worker-thread-0) Quarkus augmentation completed in 150ms
2019-10-21 14:41:57,720 WARNING [io.ver.cor.imp.VertxImpl] (vert.x-worker-thread-0) You're already on a Vert.x context, are you sure you want to create a new Vertx instance?
2019-10-21 14:41:57,724 INFO  [io.quarkus] (vert.x-worker-thread-0) Quarkus 999-SNAPSHOT started in 0.192s. Listening on: http://0.0.0.0:8080
2019-10-21 14:41:57,724 INFO  [io.quarkus] (vert.x-worker-thread-0) Profile dev activated. Live Coding activated.
2019-10-21 14:41:57,724 INFO  [io.quarkus] (vert.x-worker-thread-0) Installed features: [cdi, resteasy, smallrye-context-propagation, smallrye-reactive-streams-operators, vertx]
2019-10-21 14:41:57,724 INFO  [io.qua.dev] (vert.x-worker-thread-0) Hot replace total time: 0.239s

To Reproduce
Steps to reproduce the behavior:

  1. start Quarkus in dev mode
  2. trigger a restart by modifying a file
  3. observe the console

Environment (please complete the following information):

  • Quarkus version or git rev: 0.25.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions