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 e01a57d898 HDDS-11186. First container log missing from bundle (#6952)
e01a57d898 is described below
commit e01a57d8988d89a5c8a985989ee5ac240decac5d
Author: Doroszlai, Attila <[email protected]>
AuthorDate: Wed Jul 17 13:22:10 2024 +0200
HDDS-11186. First container log missing from bundle (#6952)
---
hadoop-ozone/dist/src/main/compose/testlib.sh | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/hadoop-ozone/dist/src/main/compose/testlib.sh
b/hadoop-ozone/dist/src/main/compose/testlib.sh
index ff676dc2a5..44b4f30380 100755
--- a/hadoop-ozone/dist/src/main/compose/testlib.sh
+++ b/hadoop-ozone/dist/src/main/compose/testlib.sh
@@ -304,9 +304,10 @@ get_output_name() {
save_container_logs() {
local output_name=$(get_output_name)
- local c
- for c in $(docker-compose ps -a "$@" | cut -f1 -d' ' | tail -n +3); do
- docker logs "${c}" >> "$RESULT_DIR/docker-${output_name}${c}.log" 2>&1
+ local id
+ for i in $(docker-compose ps -a -q "$@"); do
+ local c=$(docker ps -a --filter "id=${i}" --format "{{ .Names }}")
+ docker logs "${i}" >> "$RESULT_DIR/docker-${output_name}${c}.log" 2>&1
done
}
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]