[
https://issues.apache.org/jira/browse/IGNITE-15633?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17421436#comment-17421436
]
Petr Ivanov edited comment on IGNITE-15633 at 9/28/21, 2:51 PM:
----------------------------------------------------------------
Added script:
{code:bash}
PROCESSES=()
while read string; do
pid="$(cut -d" " -f1 <<< "${string}")"
process_name="$(cut -d" " -f5- <<< "${string}")"
PROCESSES+=( "${pid} :: ${process_name}" )
done < <(ps a | grep '[b]in/java' | grep -v '/opt/java/openjdk/jre/bin/java' |
tr -s ' ' || true)
if [ "${#PROCESSES[@]}" -ne 0 ]; then
echo "%TEXT__FOUND_JAVA_PROCESSES_ERROR%:"
for i in "${PROCESSES[@]}"; do
echo " - ${i}"
done
fi
{code}
was (Author: vveider):
Added script:
{code:bash}
PROCESSES=()
while read string; do
pid="$(cut -d" " -f1 <<< "${string}")"
process_name="$(cut -d" " -f5- <<< "${string}")"
PROCESSES+=( "${pid} :: ${process_name}" )
done < <(ps a | grep '[b]in/java' | grep -v '/opt/java/openjdk/jre/bin/java' |
tr -s ' ' || true)
if [ "${#PROCESSES[@]}" -ne 0 ]; then
echo "%TEXT__FOUND_JAVA_PROCESSES_ERROR%:"
for i in "${PROCESSES[@]}"; do
echo " - ${i}"
done
fi
{code}
> Add custom leftover node detection mechanism to TC
> --------------------------------------------------
>
> Key: IGNITE-15633
> URL: https://issues.apache.org/jira/browse/IGNITE-15633
> Project: Ignite
> Issue Type: Task
> Reporter: Petr Ivanov
> Assignee: Petr Ivanov
> Priority: Major
>
> Sometimes after test runs, unattended Ignite nodes can left running, which
> can affect next test runs on the same agent.
> We should:
> * detect and destroy such process after tests
> * fail build if there were processes with Ignite nodes left after the test
> (to inform developer that test is leaking)
--
This message was sent by Atlassian Jira
(v8.3.4#803005)