mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-12-17 20:02:05 +00:00
More crystallized test
This commit is contained in:
parent
d5443293a3
commit
e507f6b836
@ -0,0 +1 @@
|
||||
Ok
|
16
tests/queries/0_stateless/01302_aggregate_state_exception_memory_leak.sh
Executable file
16
tests/queries/0_stateless/01302_aggregate_state_exception_memory_leak.sh
Executable file
@ -0,0 +1,16 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
function test()
|
||||
{
|
||||
for i in {1..50}; do
|
||||
$CLICKHOUSE_CLIENT --query "SELECT groupArrayIfState(('Hello, world' AS s) || s || s || s || s || s || s || s || s || s, NOT throwIf(number > 50000000, 'Ok')) FROM system.numbers_mt GROUP BY number % 10";
|
||||
done
|
||||
}
|
||||
|
||||
export -f test;
|
||||
|
||||
# If the memory leak exists, it will lead to OOM fairly quickly.
|
||||
timeout 10 bash -c test 2>&1 | grep -o -F 'Ok' | uniq
|
Loading…
Reference in New Issue
Block a user