Skip to content

Commit ab589b3

Browse files
committed
change wait-for-db.sh for Doris backend checks
1 parent 77c95c3 commit ab589b3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.circleci/wait-for-db.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,11 @@ doris_ready() {
3838
probe_port 9030
3939

4040
echo "Checking for 3 alive Doris backends..."
41+
sleep 15
4142

4243
while true; do
4344
echo "Checking Doris backends..."
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$")
45+
ALIVE_BACKENDS=$(docker exec -i doris-fe-01 mysql -h127.0.0.1 -P9030 -uroot -e "show backends \G" | grep -c "^ *Alive: true$")
4546

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

0 commit comments

Comments
 (0)