From 3bc70876c4f8f32277dbb030378bc5db34fc6a17 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" <41898282+github-actions[bot]@users.noreply.github.com> Date: Wed, 8 Jan 2025 20:29:40 +0800 Subject: [PATCH] branch-2.1: [fix](test) Optimize the health check after oceanbase docker starts #46434 (#46599) Cherry-picked from #46434 Co-authored-by: zy-kkk --- docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl b/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl index 6dc507bcec..e4f00a6a11 100644 --- a/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl +++ b/docker/thirdparties/docker-compose/oceanbase/oceanbase.yaml.tpl @@ -28,7 +28,7 @@ services: ports: - ${DOCKER_OCEANBASE_EXTERNAL_PORT}:2881 healthcheck: - test: ["CMD-SHELL", "obclient -h127.1 -uroot@sys -P2881 -e 'SELECT 1'"] + test: ["CMD-SHELL", "obclient -h127.1 -P2881 -uroot@test -e 'SELECT * FROM doris_test.all_types limit 1'"] interval: 5s timeout: 60s retries: 120