-
Notifications
You must be signed in to change notification settings - Fork 3k
Application using Hibernate offline startup tries to connect to database in DEV mode on startup #50327
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
Conversation
…ase in DEV mode on startup quarkusio#50210 * Reproduced bug using QuarkusDevMode, no assertion on logs * Disabled post boot validation in offline mode
/cc @gsmet (hibernate-orm) |
Status for workflow
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Harsh but fair.
What happens if it later connects and the schema doesn't match? |
Then you'll be faced with errors. |
of course - but I'm wondering how clear they will be. If I have set it to "validate", for example, I might expect thourough validation to happen but deferred to first connection. If this isn't happening, it sounds like your point is that the user is making an unreasonble request, aka inconsistent configuration. Will the user get a warning about this being inconsistent, and possibly running with a non-validated schema? |
You can't set it to Also, this PR is not about the explicit setting from users. It's about the extra validation that happens in dev mode even if you set hbm2ddl to |
great, thanks! |
Reproduced bug using QuarkusDevMode
Disabled post boot validation in offline mode
Fixes #50210