Merge pull request #65976 from ClickHouse/vdimir/02122_join_group_by_timeout

Increase timeout in 02122_join_group_by_timeout for tsan build
This commit is contained in:
vdimir 2024-07-30 09:28:11 +00:00 committed by GitHub
commit 240628daad
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -12,6 +12,12 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
MAX_PROCESS_WAIT=5
IS_SANITIZER=$($CLICKHOUSE_CLIENT -q "SELECT count() FROM system.warnings WHERE message like '%built with sanitizer%'")
if [ "$IS_SANITIZER" -gt 0 ]; then
# Query may hang for more than 5 seconds, especially in tsan build
MAX_PROCESS_WAIT=15
fi
# TCP CLIENT: As of today (02/12/21) uses PullingAsyncPipelineExecutor
### Should be cancelled after 1 second and return a 159 exception (timeout)
timeout -s KILL $MAX_PROCESS_WAIT $CLICKHOUSE_CLIENT --max_execution_time 1 -q \