diqiu50 commented on code in PR #11909:
URL: https://github.com/apache/gravitino/pull/11909#discussion_r3535110423


##########
integration-test-common/docker-script/shutdown.sh:
##########
@@ -22,10 +22,14 @@ cd "$(dirname "$0")"
 
 LOG_DIR=../build/trino-ci-container-log
 if [ -d $LOG_DIR ]; then
-  docker cp trino-ci-hive:/usr/local/hadoop/logs $LOG_DIR/hdfs
-  docker cp trino-ci-hive:/tmp/root $LOG_DIR/hive
-  docker cp trino-ci-trino:/tmp/trino.log $LOG_DIR/trino.log
+  if [ -n "$(docker ps -aq -f name=trino-ci-hive)" ]; then
+    docker cp trino-ci-hive:/usr/local/hadoop/logs $LOG_DIR/hdfs
+    docker cp trino-ci-hive:/tmp/root $LOG_DIR/hive
+  fi
+  if [ -n "$(docker ps -aq -f name=trino-ci-trino)" ]; then
+    docker cp trino-ci-trino:/tmp/trino.log $LOG_DIR/trino.log
+  fi
 fi
 
 export GRAVITINO_TRINO_CONNECTOR_DIR=/dev/null
-docker compose down
+docker compose down --remove-orphans

Review Comment:
   Fixed



-- 
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]

Reply via email to