fix hang up with command 'drop table system.query_log sync' -- add test case

This commit is contained in:
zhanghuajie 2022-01-12 21:05:42 +08:00
parent fc097173ef
commit c5aa0bd23d
2 changed files with 7 additions and 0 deletions

View File

@ -0,0 +1,7 @@
#!/usr/bin/env bash
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
# shellcheck source=../shell_config.sh
. "$CURDIR"/../shell_config.sh
timeout 3s $CLICKHOUSE_CLIENT --receive_timeout=2 -q "DROP TABLE system.query_log sync;" 2>&1 | grep -o "Timeout exceeded"