mirror of
https://github.com/ClickHouse/ClickHouse.git
synced 2026-10-28 16:18:23 +08:00
ci/upgrade: use options for install.sh over env
This commit is contained in:
1 parent
64c2c7977c
commit
b41d0c5bbc
2 files changed
+11
-10
No files matched your search
@@ -69,7 +69,7 @@ function configure()
|
||||
#
|
||||
# DB::Exception: Incorrect file extension: V.sql.move_from.X in metadata directory store/346/346b09d6-907d-4b6b-a1e3-361ecfdab8a4/. (INCORRECT_FILE_NAME)
|
||||
#
|
||||
/repo/tests/config/install.sh /etc/clickhouse-server /etc/clickhouse-client --no-keeper-inject-auth --no-remote-database-disk
|
||||
/repo/tests/config/install.sh /etc/clickhouse-server /etc/clickhouse-client --no-keeper-inject-auth --no-remote-database-disk "$@"
|
||||
|
||||
# avoid too slow startup
|
||||
sudo cat /etc/clickhouse-server/config.d/keeper_port.xml \
|
||||
|
||||
@@ -99,14 +99,16 @@ start_server || (echo "Failed to start server" && exit 1)
|
||||
stop_server || (echo "Failed to stop server" && exit 1)
|
||||
mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/clickhouse-server.initial.log
|
||||
|
||||
# Start server from previous release
|
||||
# Let's enable S3 storage by default
|
||||
export USE_S3_STORAGE_FOR_MERGE_TREE=1
|
||||
export USE_ENCRYPTED_STORAGE=$((RANDOM % 2))
|
||||
configure_opts=(
|
||||
# Let's enable S3 storage by default
|
||||
--s3-storage
|
||||
)
|
||||
if [ $((RANDOM % 2)) -eq 0 ]; then
|
||||
configure_opts+=(--encrypted-storage)
|
||||
fi
|
||||
|
||||
# Previous version may not be ready for fault injections
|
||||
export ZOOKEEPER_FAULT_INJECTION=0
|
||||
configure
|
||||
# Start server from previous release
|
||||
configure "${configure_opts[@]}"
|
||||
|
||||
# But we still need default disk because some tables loaded only into it
|
||||
sudo sed -i "s|<main><disk>s3</disk></main>|<main><disk>s3</disk></main><default><disk>default</disk></default>|" /etc/clickhouse-server/config.d/s3_storage_policy_by_default.xml
|
||||
@@ -139,8 +141,7 @@ mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/c
|
||||
|
||||
# Install and start new server
|
||||
install_packages $PACKAGES_DIR
|
||||
export ZOOKEEPER_FAULT_INJECTION=1
|
||||
configure
|
||||
configure "${configure_opts[@]}"
|
||||
|
||||
# Check that all new/changed setting were added in settings changes history.
|
||||
# Some settings can be different for builds with sanitizers, so we check
|
||||
|
||||
Reference in new issue
Block a user