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

Make quarkus-jdbc-mysql work properly in native mode for Java 17 #21637

Merged
merged 1 commit into from
Nov 23, 2021

Conversation

geoand
Copy link
Contributor

@geoand geoand commented Nov 23, 2021

Fixes: #21366

I tested this with the jpa-mysql integration test being run with Java 17 and GraalVM 17 (which we don't run in our CI)

Copy link
Member

@Sanne Sanne left a comment

Choose a reason for hiding this comment

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

Nice one, thanks.

As far as I see, JMX registration is disabled by default but the user has the ability to opt-in; meaning that we'll silently disregard his wishes even when explicitly opting in.

Could you patch the methods to trow a meaninful exception rather then being empty?

There's also ReplicationConnectionGroupManager and LoadBalanceConnectionGroupManager to patch in a similar way - I guess it didn't trigger in our tests? Although one delegated to the other one you patched, but it sets hasRegisteredJmx = true which might be confusing.

@geoand
Copy link
Contributor Author

geoand commented Nov 23, 2021

Good points - done

@geoand geoand requested a review from Sanne November 23, 2021 13:11
Copy link
Member

@Sanne Sanne left a comment

Choose a reason for hiding this comment

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

Great, thanks!

@Sanne Sanne added area/persistence OBSOLETE, DO NOT USE env/graalvm-java17 Relating to using GraalVM native generation Java 11 triage/waiting-for-ci Ready to merge when CI successfully finishes labels Nov 23, 2021
@geoand
Copy link
Contributor Author

geoand commented Nov 23, 2021

YW!

@geoand geoand merged commit c635467 into quarkusio:main Nov 23, 2021
@quarkus-bot quarkus-bot bot added this to the 2.6 - main milestone Nov 23, 2021
@geoand geoand deleted the #21366 branch November 23, 2021 13:54
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Nov 23, 2021
@gsmet gsmet modified the milestones: 2.6 - main, 2.5.1.Final Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/persistence OBSOLETE, DO NOT USE env/graalvm-java17 Relating to using GraalVM native generation Java 11
Projects
None yet
3 participants