mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Simplify 01451_dist_logs test
This commit is contained in:
parent
2e933a94a6
commit
ee666448e9
@ -0,0 +1,20 @@
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
||||
10
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user