-
Notifications
You must be signed in to change notification settings - Fork 6.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #55621 from ClickHouse/merge-52352
Merging #52352
- Loading branch information
Showing
4 changed files
with
108 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
#!/usr/bin/env bash | ||
# Tags: race, no-debug | ||
|
||
CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd) | ||
# shellcheck source=../shell_config.sh | ||
. "$CURDIR"/../shell_config.sh | ||
|
||
$CLICKHOUSE_CLIENT -mn -q """ | ||
DROP TABLE IF EXISTS t1_02867; | ||
CREATE TABLE t1_02867 (x UInt64) ENGINE=Set(); | ||
""" | ||
|
||
function repeat_select() { | ||
n=0 | ||
while [ "$n" -lt 20 ]; | ||
do | ||
n=$(( n + 1 )) | ||
$CLICKHOUSE_CLIENT -q "SELECT count() as a FROM numbers(10) WHERE number IN t1_02867" > /dev/null 2> /dev/null || exit | ||
done | ||
} | ||
|
||
function repeat_truncate_insert() { | ||
n=0 | ||
while [ "$n" -lt 20 ]; | ||
do | ||
n=$(( n + 1 )) | ||
$CLICKHOUSE_CLIENT -q "TRUNCATE t1_02867;" > /dev/null 2> /dev/null || exit | ||
done | ||
} | ||
|
||
repeat_select & | ||
repeat_truncate_insert & | ||
repeat_select & | ||
repeat_truncate_insert & | ||
repeat_select & | ||
repeat_truncate_insert & | ||
repeat_select & | ||
repeat_truncate_insert & | ||
|
||
sleep 10 | ||
|
||
$CLICKHOUSE_CLIENT -mn -q "DROP TABLE IF EXISTS t1_02867;" |