We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 13a9c63 commit 77c95c3Copy full SHA for 77c95c3
.circleci/wait-for-db.sh
@@ -41,7 +41,7 @@ doris_ready() {
41
42
while true; do
43
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")
+ 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$")
45
46
# fallback value if failed to get number
47
if ! [[ "$ALIVE_BACKENDS" =~ ^[0-9]+$ ]]; then
0 commit comments