mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 09:02:00 +00:00
Always wait for all background INSERTs to finish to catch stuck queries
This commit is contained in:
parent
0939a9460f
commit
949b498d37
@ -24,7 +24,8 @@ EOF
|
|||||||
# Also, helps detect data races.
|
# Also, helps detect data races.
|
||||||
|
|
||||||
function insert_thread() {
|
function insert_thread() {
|
||||||
trap 'exit' INT
|
# Always wait for all background INSERTs to finish to catch stuck queries.
|
||||||
|
trap 'wait; exit;' INT
|
||||||
|
|
||||||
INSERT[0]="INSERT INTO TABLE src_a VALUES (1);"
|
INSERT[0]="INSERT INTO TABLE src_a VALUES (1);"
|
||||||
INSERT[1]="INSERT INTO TABLE src_b VALUES (2);"
|
INSERT[1]="INSERT INTO TABLE src_b VALUES (2);"
|
||||||
|
Loading…
Reference in New Issue
Block a user