Simplify 01451_dist_logs test

This commit is contained in:
Azat Khuzhin 2020-08-17 22:49:04 +03:00
parent 2e933a94a6
commit ee666448e9
2 changed files with 25 additions and 5 deletions

View File

@ -0,0 +1,20 @@
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10
10

View File

@ -1,12 +1,12 @@
#!/usr/bin/env bash
# level should be 'trace', otherwise it will not trigger the issue
CLICKHOUSE_CLIENT_SERVER_LOGS_LEVEL=trace
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
. "$CURDIR"/../shell_config.sh
# triggered not for the first query
yes "select * from remote('127.{2,3}', system.numbers) where number = 10 limit 1;" 2>/dev/null | {
head -n20 | ${CLICKHOUSE_CLIENT} -n 2>&1 >/dev/null | grep 'DB::Exception: '
}
# grep above will fail during diff with .reference
exit 0
for _ in {1..20}; do
echo "select * from remote('127.{2,3}', system.numbers) where number = 10 limit 1;"
done | ${CLICKHOUSE_CLIENT} -n 2>/dev/null