Skip to content

Hot reload with context propagation/quarkus-smallrye-reactive-messaging-kafka fails #2618

@michalszynkiewicz

Description

@michalszynkiewicz

Describe the bug
After a reload, an application that uses quarkus-smallrye-reactive-messaging-kafka fails with
https://gist.github.com/michalszynkiewicz/c71dba7a6f3d10b54adc3b2e2406a603

Expected behavior
The application should be reloaded

Actual behavior
An app that uses smallrye-reactive-messaging-kafka fails to reload when working with mvn quarkus:dev.
Instead it throws: https://gist.github.com/michalszynkiewicz/c71dba7a6f3d10b54adc3b2e2406a603

Changing the SmallRyeContextPropagationTemplate#configureStaticInit to: https://gist.github.com/michalszynkiewicz/eec489d443a675556ab5c95e0c728071 makes the app restart properly.

To Reproduce
Steps to reproduce the behavior:

mvn io.quarkus:quarkus-maven-plugin:999-SNAPSHOT:create     -DprojectGroupId=com.example     -DprojectArtifactId=reproducer     -DclassName=com.example.ads.AdResource -Dpath=/ads -Dextensions=quarkus-smallrye-reactive-messaging-kafka,io.quarkus:quarkus-smallrye-reactive-messaging,quarkus-hibernate-orm-panache

cd reproducer; mvn clean compile quarkus:dev

in another konsole:


sed -e '13a ;' -i src/main/java/com/example/ads/AdResource.java
# or modify the fline somehow if you don't have sed

curl localhost:8080/ads

Environment (please complete the following information):

java version "1.8.0_201"
Java(TM) SE Runtime Environment (build 1.8.0_201-b09)
Java HotSpot(TM) 64-Bit Server VM (build 25.201-b09, mixed mode)
  • GraalVM version (if different from Java): not applicable

  • Quarkus version or git rev: f438459

Additional context
(Add any other context about the problem here.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions