Skip to content

Commit

Permalink
HDDS-11704. Hadoop test leaves running containers in case of failure (a…
Browse files Browse the repository at this point in the history
  • Loading branch information
adoroszlai authored and fapifta committed Dec 8, 2024
1 parent 2386c2c commit 718f336
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hadoop-ozone/dist/src/main/compose/testlib.sh
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ start_docker_env(){
create_results_dir
export OZONE_SAFEMODE_MIN_DATANODES="${datanode_count}"

docker-compose --ansi never down
docker-compose --ansi never down --remove-orphans

trap stop_docker_env EXIT HUP INT TERM

Expand Down Expand Up @@ -367,7 +367,7 @@ stop_docker_env(){
down_repeats=3
for i in $(seq 1 $down_repeats)
do
if docker-compose --ansi never down; then
if docker-compose --ansi never --profile "*" down --remove-orphans; then
return
fi
if [[ ${i} -eq 1 ]]; then
Expand Down

0 comments on commit 718f336

Please sign in to comment.