mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2024-11-27 18:12:02 +00:00
Merge pull request #61110 from ClickHouse/tavplubix-patch-10
Update 02962_system_sync_replica_lightweight_from_modifier.sh
This commit is contained in:
commit
9a389d75b0
@ -14,7 +14,7 @@ export REPLICAS_TO_DROP
|
||||
|
||||
for i in $(seq $TOTAL_REPLICAS); do
|
||||
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS test_table_$i"
|
||||
$CLICKHOUSE_CLIENT --query "CREATE TABLE test_table_$i (key UInt64, value UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/test_table', '$i') ORDER BY key"
|
||||
$CLICKHOUSE_CLIENT --query "CREATE TABLE test_table_$i (key UInt64, value UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/test_table', '$i') ORDER BY key SETTINGS old_parts_lifetime=1"
|
||||
done
|
||||
|
||||
function insert_thread() {
|
||||
@ -35,7 +35,7 @@ function sync_and_drop_replicas() {
|
||||
done
|
||||
|
||||
for i in $(seq $REPLICAS_TO_DROP); do
|
||||
$CLICKHOUSE_CLIENT --query "CREATE TABLE test_table_$i (key UInt64, value UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/test_table', '$i') ORDER BY key"
|
||||
$CLICKHOUSE_CLIENT --query "CREATE TABLE test_table_$i (key UInt64, value UInt8) ENGINE = ReplicatedMergeTree('/clickhouse/tables/$CLICKHOUSE_TEST_ZOOKEEPER_PREFIX/test_table', '$i') ORDER BY key SETTINGS old_parts_lifetime=1"
|
||||
done
|
||||
done
|
||||
}
|
||||
@ -87,4 +87,4 @@ for i in $(seq $TOTAL_REPLICAS); do
|
||||
if [ $i -gt $REPLICAS_TO_DROP ]; then
|
||||
$CLICKHOUSE_CLIENT --query "DROP TABLE IF EXISTS test_table_$i"
|
||||
fi
|
||||
done
|
||||
done
|
||||
|
Loading…
Reference in New Issue
Block a user