mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-25 17:12:03 +00:00
Merge pull request #67650 from jkartseva/async-insert-race-long-fixes
`02481_async_insert_race_long.sh` flakiness fixes
This commit is contained in:
commit
8b005315cc
@ -7,7 +7,7 @@ CURDIR=$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)
|
|||||||
# shellcheck source=../shell_config.sh
|
# shellcheck source=../shell_config.sh
|
||||||
. "$CURDIR"/../shell_config.sh
|
. "$CURDIR"/../shell_config.sh
|
||||||
|
|
||||||
export MY_CLICKHOUSE_CLIENT="$CLICKHOUSE_CLIENT --async_insert_busy_timeout_ms 10 --async_insert_max_data_size 1 --async_insert 1"
|
export MY_CLICKHOUSE_CLIENT="$CLICKHOUSE_CLIENT --async_insert_busy_timeout_min_ms 50 --async_insert_busy_timeout_max_ms 50 --async_insert 1"
|
||||||
|
|
||||||
function insert1()
|
function insert1()
|
||||||
{
|
{
|
||||||
@ -29,11 +29,8 @@ function insert3()
|
|||||||
{
|
{
|
||||||
local TIMELIMIT=$((SECONDS+$1))
|
local TIMELIMIT=$((SECONDS+$1))
|
||||||
while [ $SECONDS -lt "$TIMELIMIT" ]; do
|
while [ $SECONDS -lt "$TIMELIMIT" ]; do
|
||||||
${MY_CLICKHOUSE_CLIENT} --insert_keeper_fault_injection_probability=0 --wait_for_async_insert 1 -q "INSERT INTO async_inserts_race VALUES (7, 'g') (8, 'h')" &
|
${MY_CLICKHOUSE_CLIENT} --insert_keeper_fault_injection_probability=0 --wait_for_async_insert 1 -q "INSERT INTO async_inserts_race VALUES (7, 'g') (8, 'h')"
|
||||||
sleep 0.05
|
|
||||||
done
|
done
|
||||||
|
|
||||||
wait
|
|
||||||
}
|
}
|
||||||
|
|
||||||
function select1()
|
function select1()
|
||||||
|
Loading…
Reference in New Issue
Block a user