mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Update send logs tests.
This commit is contained in:
parent
acb2a54c96
commit
40ae9aa60b
@ -0,0 +1,11 @@
|
||||
<Trace>
|
||||
.
|
||||
<Debug>
|
||||
.
|
||||
<Information>
|
||||
.
|
||||
<Error>
|
||||
-
|
||||
.
|
||||
.
|
||||
.
|
20
dbms/tests/queries/0_stateless/00965_logs_level_bugfix.sh
Executable file
20
dbms/tests/queries/0_stateless/00965_logs_level_bugfix.sh
Executable file
@ -0,0 +1,20 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
clickhouse-client --send_logs_level="trace" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Trace" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="debug" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Debug" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="information" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Information" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="error" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Error" | head -n 1
|
||||
echo "-"
|
||||
clickhouse-client --send_logs_level="debug" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Trace" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="information" --query="SELECT 1" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="error" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace\|Information" | head -n 1
|
||||
echo "."
|
||||
clickhouse-client --send_logs_level="None" --query="SELECT throwIf(1)" 2>&1 | awk '{ print $8 }' | grep "Debug\|Trace\|Information\|Error" | head -n 1
|
@ -1,24 +0,0 @@
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
1
|
||||
<Debug>
|
||||
<Trace>
|
||||
<Debug>
|
||||
|
||||
|
||||
|
||||
|
||||
<Information>
|
||||
<Debug>
|
||||
<Debug>
|
||||
<Debug>
|
||||
|
||||
|
||||
|
||||
|
||||
<Information>
|
||||
<Debug>
|
||||
<Information>
|
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
> 00965_logs_level_bugfix.tmp
|
||||
|
||||
clickhouse-client --send_logs_level="trace" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
clickhouse-client --send_logs_level="debug" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
clickhouse-client --send_logs_level="information" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
clickhouse-client --send_logs_level="warning" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
clickhouse-client --send_logs_level="error" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
clickhouse-client --send_logs_level="none" --query="SELECT 1;" 2>> 00965_logs_level_bugfix.tmp
|
||||
|
||||
awk '{ print $8 }' 00965_logs_level_bugfix.tmp
|
||||
|
||||
|
@ -1,12 +0,0 @@
|
||||
<Debug>
|
||||
<Trace>
|
||||
<Debug>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
<Information>
|
||||
<Debug>
|
||||
*****
|
||||
<Information>
|
@ -1,17 +0,0 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
> 00965_send_logs_level_concurrent_queries_first.tmp
|
||||
> 00965_send_logs_level_concurrent_queries_second.tmp
|
||||
|
||||
clickhouse-client --send_logs_level="trace" --query="SELECT * from numbers(100000);" >> /dev/null 2>> 00965_send_logs_level_concurrent_queries_first.tmp &
|
||||
clickhouse-client --send_logs_level="information" --query="SELECT * from numbers(100000);" >> /dev/null 2>> 00965_send_logs_level_concurrent_queries_second.tmp
|
||||
|
||||
sleep 2
|
||||
|
||||
awk '{ print $8 }' 00965_send_logs_level_concurrent_queries_first.tmp
|
||||
echo "*****"
|
||||
awk '{ print $8 }' 00965_send_logs_level_concurrent_queries_second.tmp
|
||||
|
14
dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh
Executable file
14
dbms/tests/queries/0_stateless/00965_send_logs_level_concurrent_queries.sh
Executable file
@ -0,0 +1,14 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
> 00965_send_logs_level_concurrent_queries_first.tmp
|
||||
> 00965_send_logs_level_concurrent_queries_second.tmp
|
||||
|
||||
clickhouse-client --send_logs_level="trace" --query="SELECT * from numbers(100000);" 2>&1 | awk '{ print $8 }' > 00965_send_logs_level_concurrent_queries_first.tmp &
|
||||
clickhouse-client --send_logs_level="trace" --query="SELECT * from numbers(100000);" 2>&1 | awk '{ print $8 }' > 00965_send_logs_level_concurrent_queries_second.tmp &
|
||||
|
||||
wait
|
||||
|
||||
diff 00965_send_logs_level_concurrent_queries_first.tmp 00965_send_logs_level_concurrent_queries_second.tmp
|
Loading…
Reference in New Issue
Block a user