The "TestExecStartupProbe" test case assume the following process execute sequence.
The main application running.
Then a startup probe process running, test if main application startup successful
If startup successful, execute jcmd pid Quickstart.dump which create new process "sat-adapter"
The "sat-adapter" create a new process do CDS dump
Done
The main application should run as quick as possible, because it's the test target. But if main application not run long enough to make the completion of step 2 ~ step 5, the test case will failed.
The current implementation use a hard-code sleep time, but if run on a heavy load host, the hard code time is not suitable.
The improve is :
Use a file that indicate if dump successful that avoid a hard-code sleep time
The "TestExecStartupProbe" test case assume the following process execute sequence.
The main application should run as quick as possible, because it's the test target. But if main application not run long enough to make the completion of step 2 ~ step 5, the test case will failed. The current implementation use a hard-code sleep time, but if run on a heavy load host, the hard code time is not suitable.
The improve is :