Closed plevart closed 1 year ago
/cc @geoand (devservices), @stuartwdouglas (devservices)
@plevart it seems like you have done some nice investigation work. Do you perhaps have a fix in the works?
I think @alesj is volunteering to fix this. Right @alesj ?
Yeah, just assigned it to myself ... but need to finish some gRPC work before.
Describe the bug
Dev mode restarts database (mysql) container on liver reload when there's an explicit property in
application.properties
:quarkus.datasource.devservices.enabled=true
When there's no such explicit property (the default value
true
doesn't count), database container is not restarted on live reload.Expected behavior
No restart is expected always.
Actual behavior
DB container is restarted and data is lost after live reload.
How to Reproduce?
No response
Output of
uname -a
orver
No response
Output of
java -version
No response
GraalVM version (if different from Java)
No response
Quarkus version or git rev
No response
Build tool (ie. output of
mvnw --version
orgradlew --version
)No response
Additional information
Here's a debug session when live reload triggers container restart (class DevServicesDatasourceProcessor):
..the
cachedProperties
at that time only contains the following two entries: