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

Add quarkus.hibernate-orm.database.version-check.enabled #43762

Merged
merged 1 commit into from
Oct 8, 2024

Conversation

yrodiere
Copy link
Member

@yrodiere yrodiere commented Oct 8, 2024

This allows disabling the check on startup if one knows the database won't be reachable.

It also currently defaults to being disabled when a dialect is set explicitly (quarkus.hibernate-orm.dialect=something), in order to work around problems we have with correctly detecting the version on some databases that we don't have tests for (unsupported ones).

This is a workaround for #43703 and #42255, but is not a fix: we will need Hibernate ORM 7.0 for an actual fix that makes database version checks work correctly even on Azure SQL Server or CockroachDB.

Copy link

quarkus-bot bot commented Oct 8, 2024

/cc @gsmet (hibernate-orm)

@yrodiere
Copy link
Member Author

yrodiere commented Oct 8, 2024

Marking for backport, as this workaround is needed to make Quarkus 3.15 work with CockroachDB in particular.

This comment has been minimized.

Copy link
Contributor

@marko-bekhta marko-bekhta left a comment

Choose a reason for hiding this comment

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

looks nice 🎉

docs/src/main/asciidoc/hibernate-orm.adoc Outdated Show resolved Hide resolved

This comment has been minimized.

This allows disabling the check on startup if one knows the database
won't be reachable.

It also currently defaults to being disabled when a dialect is set
explicitly (`quarkus.hibernate-orm.dialect=something`),
in order to work around problems we have with correctly
detecting the version on some databases that we don't have tests for
(unsupported ones).
@yrodiere yrodiere added the triage/waiting-for-ci Ready to merge when CI successfully finishes label Oct 8, 2024
Copy link

quarkus-bot bot commented Oct 8, 2024

Status for workflow Quarkus Documentation CI

This is the status report for running Quarkus Documentation CI on commit 6daa2ea.

✅ 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.

Warning

There are other workflow runs running, you probably need to wait for their status before merging.

Copy link

github-actions bot commented Oct 8, 2024

🙈 The PR is closed and the preview is expired.

@gsmet gsmet merged commit 04a571f into quarkusio:main Oct 8, 2024
44 checks passed
@quarkus-bot quarkus-bot bot removed the triage/waiting-for-ci Ready to merge when CI successfully finishes label Oct 8, 2024
@quarkus-bot quarkus-bot bot added this to the 3.16 - main milestone Oct 8, 2024
@gsmet gsmet modified the milestones: 3.16.0.CR1, 3.15.2 Nov 14, 2024
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.

3 participants