Open tnixa opened 4 years ago
That's interesting... I wonder what the Open Liberty "contract" is with respect to availability of health check endpoints vs. whatever "app started" events the liberty-maven-plugin dev mode is listening for.
It seems there's a good chance this is more an issue between the liberty-maven-plugin and the Open Liberty runtime than the stack layer per se.
That said, we can try to research more to find the right way to direct this.
I'm curious if you've ever seen this having made the change initially, before appsody run
? Or do you only see it on a dynamic change made after appsody run
? Or both? I'd read into your writeup that you made the change before appsody run
but just asking you to confirm.
Thanks.
@scottkurz - please let us know what you find out. We are observing startup times that aren't acceptable:
[Container] [INFO] [AUDIT ] CWWKT0016I: Web application available (default_host): http://3430d04c5499:9080/
[Container] [INFO] [AUDIT ] CWWKZ0001I: Application starter-app started in 182.711 seconds.
[Container] [INFO] [AUDIT ] CWWKT0017I: Web application removed (default_host): http://3430d04c5499:9080/
[Container] [INFO] [AUDIT ] CWWKZ0009I: The application starter-app has stopped successfully.
[Container] [INFO] [AUDIT ] CWWKZ0022W: Application starter-app has not started in 29.965 seconds.
[Container] [INFO] [AUDIT ] CWWKT0016I: Web application available (default_host): http://3430d04c5499:9080/
[Container] [INFO] [AUDIT ] CWWKZ0003I: The application starter-app updated in 127.945 seconds
(this is the starter app with a minor minor change BTW - it's also unclear why the app stops and restarts... and I've verified that the app is not responding until we see that "updated" message at the end).
Opened: https://github.com/OpenLiberty/ci.maven/issues/766 for some help on this from the liberty-maven-plugin side.
A workaround you could try is running in --interactive mode: appsody run --interactive
which doesn't run the tests right away but holds off until you hit <Enter>
.
@tnixa .. I don't have auth to do this, but maybe it'd help to re-title this as "ITs using MP Health endpoints fail in development mode".
Describe the bug I modified the java-openliberty stack by adding in a blockchain dependency and a couple java files and when i do an
appdsody run
I am noticing some test failures. It seems the tests are trying to reach endpoints before they are available...To Reproduce Steps to reproduce the behavior:
appsody stack package
appsody run
Expected behavior The tests were not failing prior to adding in the additional code for blockchain
Environment Details (please complete the following information):
If applicable please specify: