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 590 forks source link

On z/OS the rmData.log should not be stored in the workarea as this is lost on a clean start #24855

Open djmatthews opened 1 year ago

djmatthews commented 1 year ago

Describe the bug
On z/OS the rmData.log should not be stored in the workarea as this is lost on a clean start. Moreover, the Liberty runtime appears to automatically clean the workarea if the app server was not stopped normally (see comments in ServerLock.java). Since the rmData.log is required to successfully complete any outstanding RRS work from the previous execution of the app server, that RRS work is stranded and outstanding transaction recovery does not occur.

Steps to Reproduce
Kill a Liberty app server that is running on z/OS with RRS resources. NOTE that the RM Name reported in messages CWLIB0103I and CWLIB0104I have changed. RRS Panels show the old RM Name in Reset state and the new RM Name in Run state.

Expected behavior
The app server should use the existing RM Name on restart.

Diagnostic information:

Additional context
Because the rmData.log is stored in the workarea, it is lost on a --clean start.

tjwatson commented 1 year ago

com.ibm.ws.ssl.config.WSKeyStore.locationInOutputDir(String) is an example of finding the output area for ${server.output.dir}/resources/security/