Skip to content
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

Live reload instrumentation steps executed when instrumentation is disabled #20301

Closed
jamesnetherton opened this issue Sep 21, 2021 · 0 comments · Fixed by #20316
Closed

Live reload instrumentation steps executed when instrumentation is disabled #20301

jamesnetherton opened this issue Sep 21, 2021 · 0 comments · Fixed by #20316
Labels
area/devmode kind/bug Something isn't working
Milestone

Comments

@jamesnetherton
Copy link
Contributor

Describe the bug

Raised off the back of this Zulip thread:

https://quarkusio.zulipchat.com/#narrow/stream/187038-dev/topic/Live.20reload.20with.20instrumentation.20disabled

When quarkus.live-reload.instrumentation = false, it seems that intrumentation logic still runs.

Expected behavior

Instrumentation steps are not run on live reload if it's disabled.

Actual behavior

Instrumentation steps seem to be run on live reload if when they should be disabled.

How to Reproduce?

git clone https://github.com/apache/camel-quarkus-examples
cd timer-log
mvn quarkus:dev

Edit src/main/java/org/acme/timer/TimerRoute.java and change the log message to trigger a live reload. There's an exception due to a bug / bad implementation of the Camel HotReplacementSetup, but the message logged with the stack trace says Failed to replace classes via instrumentation. Which is unexpected if instrumentation is disabled.

Output of uname -a or ver

No response

Output of java -version

No response

GraalVM version (if different from Java)

No response

Quarkus version or git rev

2.2.3.Final

Build tool (ie. output of mvnw --version or gradlew --version)

No response

Additional information

No response

@jamesnetherton jamesnetherton added the kind/bug Something isn't working label Sep 21, 2021
stuartwdouglas added a commit to stuartwdouglas/quarkus that referenced this issue Sep 21, 2021
@quarkus-bot quarkus-bot bot added this to the 2.3 - main milestone Sep 22, 2021
@gsmet gsmet modified the milestones: 2.3.0.CR1, 2.2.4.Final Nov 30, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 1, 2021
gsmet pushed a commit to gsmet/quarkus that referenced this issue Dec 1, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/devmode kind/bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants