adoroszlai opened a new pull request, #7435:
URL: https://github.com/apache/ozone/pull/7435
## What changes were proposed in this pull request?
Hadoop's containers are left running if Hadoop test fails.
Steps to reproduce (by simulating failure):
```bash
cd hadoop-ozone/dist/target/ozone-2.0.0-SNAPSHOT/compose
sed -i -e 's/execute_command_in_container rm hadoop version/exit 1/'
common/hadoop-test.sh
cd ozone
./test-hadoop.sh
docker ps
```
Result:
```
CONTAINER ID IMAGE COMMAND CREATED
STATUS PORTS
NAMES
525fd4ae5cc2 apache/hadoop:3.3.6 "/usr/local/bin/dumb…" 13 seconds ago
Up 12 seconds 0.0.0.0:8088->8088/tcp, :::8088->8088/tcp
ozone-rm-1
27e9903e3d3a apache/hadoop:3.3.6 "/usr/local/bin/dumb…" 13 seconds ago
Up 12 seconds
ozone-nm-1
```
https://issues.apache.org/jira/browse/HDDS-11704
## How was this patch tested?
Same steps as described in repro. Verified that no containers are left
running.
CI:
https://github.com/adoroszlai/ozone/actions/runs/11843661370
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]