-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Unexpected INFO
"exception" Log is thrown when I am dropping and creating a schema/tables on Oracle
#26228
Comments
At first I thought this was a duplicate of #16204, but it seems it's even worse with Oracle: we don't just get a JDBC warning when trying to drop a table that doesn't exist, we get a full-blown exception... I suspect whatever solution we chose, it will have to be handled in Hibernate ORM. A shame Oracle doesn't support |
Related: I didn't want us to work on HHH-14889 in ORM5, but for ORM 6 it would be welcome. |
Well, improving the situation by using |
Depends what you mean by "a lot". It would get rid of stack traces, so it would solve this ticket (#26228). We'd still have work on our plate to solve #16204 / HHH-14889. To clarify, there are two problems:
(Also, I'm not sure we can expect people to use the latest version of Oracle, so it will take a few years until we can consider this ticket fixed if we rely exclusively on Oracle adding support for |
don't we already do that? |
For other databases, yes we do. Though obviously, for Oracle, no dialect supports it at the moment. |
Ah OK, I thought it was ORM complaining, just ignore me then :). |
Right, that's what I thought - you made me doubt my memories :) |
I think we should close this one: newer Oracle databases support it, but for the older ones we can't do magic. Also N.B. it's not a Quarkus bug, Hibernate ORM has been logging such exceptions for about 20 years.. sure that doesn't make it "nice" in any way but there's nothing Quarkus specific here. |
Closing. Anyone wanting to get this fixed, please discuss it on https://hibernate.atlassian.net/browse/HHH-14889 or create a separate issue if HHH-14889 is a different problem. |
Describe the bug
Quarkus: 2.9.2.Final
When a Quarkus application that is using
quarkus-hibernate-orm-panache
extension is dropping and creating an Oracle schema/tables an unexpectedINFO
log is dropped to the console:Note: Works well in Mysql or Postgresql
In my opinion, the table
book
should not be removed if doesn't exist, or at least don't print an "error" stacktrace on the console.application.properties
Expected behavior
No
INFO
error is logged. Same behavior as other datasources as postgresqlActual behavior
The following
INFO
is logged on the console:How to Reproduce?
git clone --branch feat/oracle_example git@github.com:pjgg/quarkus-test-framework-1.git
mvn clean verify -Dexamples -pl examples/database-oracle -Dit.test=OracleDatabaseIT -Dts.app.log.enable=true
Output of
java -version
openjdk 11.0.14 2022-01-18 OpenJDK Runtime Environment Temurin-11.0.14+9 (build 11.0.14+9) OpenJDK 64-Bit Server VM Temurin-11.0.14+9 (build 11.0.14+9, mixed mode)
The text was updated successfully, but these errors were encountered: