Skip to content

Commit 77c95c3

Browse files
committed
Update wait-for-db.sh for checking Doris backends
1 parent 13a9c63 commit 77c95c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

.circleci/wait-for-db.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ doris_ready() {
4141

4242
while true; do
4343
echo "Checking Doris backends..."
44-
ALIVE_BACKENDS=$(timeout 10 docker compose exec -T doris-fe-01 mysql -uroot -e "show backends \G" 2>/dev/null | grep -c "Alive: true")
44+
ALIVE_BACKENDS=$(timeout 10 docker exec -i doris-fe-01 mysql -h127.0.0.1 -P9030 -uroot -e "show backends \G" | grep -c "^ *Alive: true$")
4545

4646
# fallback value if failed to get number
4747
if ! [[ "$ALIVE_BACKENDS" =~ ^[0-9]+$ ]]; then

0 commit comments

Comments
 (0)