OpenLiberty / open-liberty

Open Liberty is a highly composable, fast to start, dynamic application server runtime environment
https://openliberty.io
Eclipse Public License 2.0
1.15k stars 588 forks source link

DB2 datasource config fails across checkpoint restore #22589

Open sebratton opened 2 years ago

sebratton commented 2 years ago

In order to get datasource to recognize env variables set up in a checkpoint/restore scenario, it's necessary to define them server.xml variables before the checkpoint, and after checkpoint reintroduce the "real" values as a config change.

tjwatson commented 1 year ago

I recall the issue, but not all the details. @sebratton can you show the example config that is necessary to get this to work?

I'm not sure if this becomes a documentation issue, or if we need to do something in config to insert "dummy" values on the checkpoint side. The on restore they would either become empty/null, if no value in config exists, or they would get the configured value.