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

Ensure that all our handlers extend ExtHandler #44565

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

dmlloyd
Copy link
Member

@dmlloyd dmlloyd commented Nov 18, 2024

Fixes #44540 (in theory)

Copy link

quarkus-bot bot commented Nov 18, 2024

/cc @brunobat (opentelemetry), @radcortez (opentelemetry)

@gsmet
Copy link
Member

gsmet commented Nov 18, 2024

@dmlloyd when you say in theory did you test this particular example?

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 18, 2024

I tested it obliquely, but I couldn't test it exactly (yet?) due to local configuration problems.

@gastaldi
Copy link
Contributor

@MaxFichtelmann can you build this PR locally and confirm that it fixes your issue before we merge it?

@brunobat
Copy link
Contributor

It makes sense to me even if it doesn't fix the bug.

@MaxFichtelmann
Copy link

@MaxFichtelmann can you build this PR locally and confirm that it fixes your issue before we merge it?

Sure, I'll build and Test when I am at the PC again.

Copy link

quarkus-bot bot commented Nov 18, 2024

Status for workflow Quarkus CI

This is the status report for running Quarkus CI on commit 8fe3c76.

✅ The latest workflow run for the pull request has completed successfully.

It should be safe to merge provided you have a look at the other checks in the summary.

You can consult the Develocity build scans.

@MaxFichtelmann
Copy link

hm, still seeing that behaviour in quarkus dev - actually when running that same project without dev, the issue does not appear, neither with 3.14.3 nor 3.16.3 - so seems to be a devmode-only issue.

Copy link
Contributor

@gastaldi gastaldi left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree with @brunobat. Even if it doesn't fix the issue, I think this is a nice improvement to have

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 19, 2024

I also opened jboss-logging/jboss-logmanager#493 which should address what we're seeing on the stack trace, once that is merged & the component is updated.

@gastaldi
Copy link
Contributor

I'd recommend to wait until jboss-logging/jboss-logmanager#493 is merged and released and updated in this PR before merging

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 19, 2024

I don't think waiting is necessary, because the two changes are not interdependent.

@gsmet
Copy link
Member

gsmet commented Nov 19, 2024

@dmlloyd sorry if it's just noise but how will the new patch in JBoss Logmanager interact with this specific piece:

7e6c529#diff-3027189c5073a902729f033232338719972cd18a3c64018f24b99dd78e1fea6aR441-R447

where we add parameters to something that used to be NO_FORMAT.

@gastaldi
Copy link
Contributor

gastaldi commented Nov 19, 2024

@dmlloyd I know, but the second change will fix the bug, right?

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 19, 2024

It might :-)

@gastaldi
Copy link
Contributor

Loving the confidence behind this patch :D

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 19, 2024

@dmlloyd sorry if it's just noise but how will the new patch in JBoss Logmanager interact with this specific piece:

7e6c529#diff-3027189c5073a902729f033232338719972cd18a3c64018f24b99dd78e1fea6aR441-R447

where we add parameters to something that used to be NO_FORMAT.

The interaction should be fine. The handler for NO_FORMAT here will change it to use message format, with two arguments.

@gsmet
Copy link
Member

gsmet commented Nov 19, 2024

The interaction should be fine. The handler for NO_FORMAT here will change it to use message format, with two arguments.

And it won't fail if we end up with My message { that used to work in NO_FORMAT but won't work with message format? Or maybe you don't resolve the parameters recursively?

@dmlloyd
Copy link
Member Author

dmlloyd commented Nov 19, 2024

The interaction should be fine. The handler for NO_FORMAT here will change it to use message format, with two arguments.

And it won't fail if we end up with My message { that used to work in NO_FORMAT but won't work with message format? Or maybe you don't resolve the parameters recursively?

The original message is passed as a parameter to a new message, so no further interpolation can take place.

@gsmet
Copy link
Member

gsmet commented Nov 19, 2024

OK, perfect, thanks for the clarification. I'm still a bit puzzled the OP says it's failing only in dev mode but I wonder if he actually used the newly compiled version in dev mode, I will have to check that.

@MaxFichtelmann
Copy link

MaxFichtelmann commented Nov 19, 2024

OK, perfect, thanks for the clarification. I'm still a bit puzzled the OP says it's failing only in dev mode but I wonder if he actually used the newly compiled version in dev mode, I will have to check that.

I am optimistic that I used the updated version, but this is the first time I built quarkus myself, so...

@geoand geoand merged commit f138000 into quarkusio:main Nov 22, 2024
52 checks passed
@quarkus-bot quarkus-bot bot added this to the 3.18 - main milestone Nov 22, 2024
@dmlloyd dmlloyd deleted the exthandler branch November 22, 2024 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

FORMAT_FAILURE when using Log.error(Object,Throwable)
7 participants