mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-21 15:12:02 +00:00
fix tests
This commit is contained in:
parent
f7571a2d3b
commit
0de6e90a34
@ -44,7 +44,7 @@ MESSAGES_TO_RETRY = [
|
||||
DISTRIBUTED_DDL_TIMEOUT_MSG # FIXME
|
||||
]
|
||||
|
||||
MAX_RETRIES = 5
|
||||
MAX_RETRIES = 3
|
||||
|
||||
class Terminated(KeyboardInterrupt):
|
||||
pass
|
||||
|
@ -41,6 +41,11 @@ ln -sf $SRC_PATH/users.d/database_atomic_drop_detach_sync.xml $DEST_SERVER_PATH/
|
||||
ln -sf $SRC_PATH/users.d/opentelemetry.xml $DEST_SERVER_PATH/users.d/
|
||||
ln -sf $SRC_PATH/users.d/remote_queries.xml $DEST_SERVER_PATH/users.d/
|
||||
|
||||
# FIXME DataPartsExchange may hang for http_send_timeout seconds
|
||||
# when nobody is going to read from the other side of socket (due to "Fetching of part was cancelled"),
|
||||
# but socket is owned by HTTPSessionPool, so it's not closed.
|
||||
ln -sf $SRC_PATH/users.d/timeouts.xml $DEST_SERVER_PATH/users.d/
|
||||
|
||||
ln -sf $SRC_PATH/ints_dictionary.xml $DEST_SERVER_PATH/
|
||||
ln -sf $SRC_PATH/strings_dictionary.xml $DEST_SERVER_PATH/
|
||||
ln -sf $SRC_PATH/decimals_dictionary.xml $DEST_SERVER_PATH/
|
||||
|
9
tests/config/users.d/timeouts.xml
Normal file
9
tests/config/users.d/timeouts.xml
Normal file
@ -0,0 +1,9 @@
|
||||
<yandex>
|
||||
<profiles>
|
||||
<default>
|
||||
<!-- Default HTTP timeout is 30 minutes. Set it to 1 minute. -->
|
||||
<http_send_timeout>60</http_send_timeout>
|
||||
<http_receive_timeout>60</http_receive_timeout>
|
||||
</default>
|
||||
</profiles>
|
||||
</yandex>
|
@ -15,6 +15,7 @@ alter table rmt update s = 's'||toString(n) where 1;
|
||||
|
||||
select * from rmt;
|
||||
alter table rmt replace partition '0' from mt;
|
||||
system sync replica rmt;
|
||||
|
||||
select table, partition_id, name, rows from system.parts where database=currentDatabase() and table in ('mt', 'rmt') and active=1 order by table, name;
|
||||
|
||||
|
@ -12,10 +12,10 @@ engines[2]="ReplicatedMergeTree('/test/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/{shard}
|
||||
for ((i=0; i<16; i++)) do
|
||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE dst_$i (p UInt64, k UInt64, v UInt64)
|
||||
ENGINE=ReplicatedMergeTree('/test/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/dst', '$i')
|
||||
PARTITION BY p % 10 ORDER BY k" 2>&1| grep -Pv "Retrying createReplica|created by another server at the same moment, will retry" &
|
||||
PARTITION BY p % 10 ORDER BY k" 2>&1| grep -Pv "Retrying createReplica|created by another server at the same moment, will retry|is already started to be removing" 2>&1 &
|
||||
engine=${engines[$((i % ${#engines[@]}))]}
|
||||
$CLICKHOUSE_CLIENT -q "CREATE TABLE src_$i (p UInt64, k UInt64, v UInt64) ENGINE=$engine
|
||||
PARTITION BY p % 10 ORDER BY k" 2>&1| grep -Pv "Retrying createReplica|created by another server at the same moment, will retry" &
|
||||
PARTITION BY p % 10 ORDER BY k" 2>&1| grep -Pv "Retrying createReplica|created by another server at the same moment, will retry|is already started to be removing" 2>&1 &
|
||||
done
|
||||
wait
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user