Closed turing85 closed 3 weeks ago
The health check for the default datasource shows an UP status, without any url being configured.
UP
The application should fail to start, since the datasource is not configured correctly
The health check for the default datasource shows an UP status
Reproducer:
git clone https://github.com/turing85/quarkus-camel-local-transactions.git cd quarkus-camel-local-transactions
application.properties
./mvnw --define skipTests clean package
QUARKUS_ARTEMIS_URL=tcp://localhost:5432 java -jar target/quarkus-app/quarkus-run.jar
{ ... "checks": [ ... { "name": "Database connections health check", "status": "UP", "data": { "<default>": "UP" } }, ... ] }
uname -a
ver
Linux xxx 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
java -version
openjdk 21.0.2 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
No response
mvnw --version
gradlew --version
/cc @jmartisk (health), @radcortez (config), @xstefank (health)
Is this different than #41152?
It looks like a duplicate
uh... yeah... it is... how did this duplicate?
Stuff happens :)
Describe the bug
The health check for the default datasource shows an
UP
status, without any url being configured.Expected behavior
The application should fail to start, since the datasource is not configured correctly
Actual behavior
The health check for the default datasource shows an
UP
statusHow to Reproduce?
Reproducer:
application.properties
and verify that no database url is configuredOutput of
uname -a
orver
Linux xxx 5.15.0-52-generic #58-Ubuntu SMP Thu Oct 13 08:03:55 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux
Output of
java -version
openjdk 21.0.2 2024-01-16 LTS OpenJDK Runtime Environment Temurin-21.0.2+13 (build 21.0.2+13-LTS) OpenJDK 64-Bit Server VM Temurin-21.0.2+13 (build 21.0.2+13-LTS, mixed mode, sharing)
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
No response