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


##########
integration-test-common/docker-script/launch.sh:
##########
@@ -55,12 +60,12 @@ max_attempts=300
 attempts=0
 
 while true; do
-    docker compose exec -T trino trino --execute "SELECT 1" >/dev/null 2>&1 && 
{
+    docker compose -f "$COMPOSE_FILE" exec -T trino trino --execute "SELECT 1" 
>/dev/null 2>&1 && {
         break;
     }
 
-    num_container=$(docker ps --format '{{.Names}}' | grep trino-ci | wc -l)
-    if [ "$num_container" -lt 4 ]; then
+    num_container=$(docker compose -f "$COMPOSE_FILE" ps -q | wc -l)
+    if [ "$num_container" -lt "$EXPECTED_SERVICE_COUNT" ]; then
         echo "ERROR: Trino-ci containers start failed."
         exit 0
     fi

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