This is an automated email from the ASF dual-hosted git repository.
adoroszlai pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/ozone.git
The following commit(s) were added to refs/heads/master by this push:
new cc1a37476b HDDS-11704. Hadoop test leaves running containers in case
of failure (#7435)
cc1a37476b is described below
commit cc1a37476bb6e24c0d2c83b25ac64b5499f1390d
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Mon Nov 25 11:12:38 2024 +0100
HDDS-11704. Hadoop test leaves running containers in case of failure (#7435)
---
hadoop-ozone/dist/src/main/compose/testlib.sh | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh
b/hadoop-ozone/dist/src/main/compose/testlib.sh
index 4d3cb5c103..9bb8839266 100755
--- a/hadoop-ozone/dist/src/main/compose/testlib.sh
+++ b/hadoop-ozone/dist/src/main/compose/testlib.sh
@@ -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
@@ -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
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]