Fix randomization of Keeper configs in stress tests

This commit is contained in:
Antonio Andelic 2023-11-15 12:14:48 +00:00
parent 4b7c80d824
commit a828410993

View File

@ -63,16 +63,16 @@ function configure()
if [[ -n "$RANDOMIZE_KEEPER_FEATURE_FLAGS" ]] && [[ "$RANDOMIZE_KEEPER_FEATURE_FLAGS" -eq 1 ]]; then if [[ -n "$RANDOMIZE_KEEPER_FEATURE_FLAGS" ]] && [[ "$RANDOMIZE_KEEPER_FEATURE_FLAGS" -eq 1 ]]; then
# Randomize all Keeper feature flags # Randomize all Keeper feature flags
randomize_config_boolean_value filtered_list keeper_port randomize_keeper_config_boolean_value filtered_list keeper_port
randomize_config_boolean_value multi_read keeper_port randomize_keeper_config_boolean_value multi_read keeper_port
randomize_config_boolean_value check_not_exists keeper_port randomize_keeper_config_boolean_value check_not_exists keeper_port
randomize_config_boolean_value create_if_not_exists keeper_port randomize_keeper_config_boolean_value create_if_not_exists keeper_port
fi fi
sudo chown clickhouse /etc/clickhouse-server/config.d/keeper_port.xml sudo chown clickhouse /etc/clickhouse-server/config.d/keeper_port.xml
sudo chgrp clickhouse /etc/clickhouse-server/config.d/keeper_port.xml sudo chgrp clickhouse /etc/clickhouse-server/config.d/keeper_port.xml
randomize_config_boolean_value use_compression zookeeper randomize_keeper_config_boolean_value use_compression zookeeper
# for clickhouse-server (via service) # for clickhouse-server (via service)
echo "ASAN_OPTIONS='malloc_context_size=10 verbosity=1 allocator_release_to_os_interval_ms=10000'" >> /etc/environment echo "ASAN_OPTIONS='malloc_context_size=10 verbosity=1 allocator_release_to_os_interval_ms=10000'" >> /etc/environment