Skip to content

Commit 698d9c3

Browse files
authored
chore: try fix flaky ci (#17222)
1 parent 111d659 commit 698d9c3

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
1+
will restart query
12
vacuum table success

tests/suites/5_ee/01_vacuum/01_0001_ee_vacuum_kill_randomly.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,22 @@ pid=$!
2121
# kill query randomly
2222
sleep_time=$(expr $RANDOM % 5 + 5)
2323
sleep $sleep_time
24-
killall databend-query >/dev/null 2>&1
2524
kill $pid
2625

2726
# restart query
27+
echo "will restart query"
2828
bash ../scripts/ci/deploy/databend-query-standalone.sh >/dev/null 2>&1
2929

3030
# check if before and after vacuum table the table count matched
3131
old_count=$(echo "select * from test_vacuum.a order by c" | $BENDSQL_CLIENT_CONNECT)
3232

3333
echo "set data_retention_time_in_days=0; vacuum table test_vacuum.a" | $BENDSQL_CLIENT_CONNECT >/dev/null
34-
#echo "optimize table test_vacuum.a all" | $BENDSQL_CLIENT_CONNECT
34+
echo "optimize table test_vacuum.a all" | $BENDSQL_CLIENT_CONNECT
3535
count=$(echo "select * from test_vacuum.a order by c" | $BENDSQL_CLIENT_CONNECT)
3636

3737
if [[ "$old_count" != "$count" ]]; then
38-
echo "vacuum table, old count:$old_count,new count:$count"
38+
echo "vacuum table, new count:$count"
39+
echo "vacuum table, old count:$old_count"
3940
exit 1
4041
fi
4142

0 commit comments

Comments
 (0)