Currently, ci/scripts/capture-call-stacks.sh assumes that if PARALLEL_DUNIT is empty, tests were run in plain Java processes, and if it is non-empty, tests were run in Docker containers.
GEODE-8728 violates that assumption: It runs parallel tests in plain Java processes, without Docker containers.
Currently, the script looks in different places for Java processes, depending on whether PARALLEL_DUNIT is empty. If it is empty, the script dumps stacks from plain Java processes on the machine, and only those processes. If it is non-empty, the script dumps stacks from Java processes running inside Docker containers, and only those processes.
This will not work in builds that include
To allow the script to work both for newer builds that include
GEODE-8728 and older builds that do not, change it to dump call stacks from both places, regardless of whether `PARALLEL_DUNIT` is empty. If `jps` reports any processes, dump their stacks. And if `docker ps` reports any containers, dump the stacks of the Java processes in each container.