mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
Added a test
This commit is contained in:
parent
834f8426e0
commit
d5443293a3
@ -0,0 +1,2 @@
|
||||
Memory limit (for query) exceeded
|
||||
Ok
|
17
tests/queries/0_stateless/01301_aggregate_state_exception_memory_leak.sh
Executable file
17
tests/queries/0_stateless/01301_aggregate_state_exception_memory_leak.sh
Executable file
@ -0,0 +1,17 @@
|
||||
#!/usr/bin/env bash
|
||||
|
||||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
||||
. $CURDIR/../shell_config.sh
|
||||
|
||||
function test()
|
||||
{
|
||||
for i in {1..1000}; do
|
||||
$CLICKHOUSE_CLIENT --max_memory_usage 1G <<< "SELECT uniqExactState(number) 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 30 bash -c test 2>&1 | grep -o -F 'Memory limit (for query) exceeded' | uniq
|
||||
echo 'Ok'
|
Loading…
Reference in New Issue
Block a user