+ ln -s /usr/share/clickhouse-test/ci/stress.py /usr/bin/stress
+ ln -s /usr/share/clickhouse-test/clickhouse-test /usr/bin/clickhouse-test
+ source /attach_gdb.lib
++ source /utils.lib
+++ sysctl kernel.core_pattern=core.%e.%p-%P
kernel.core_pattern = core.%e.%p-%P
+++ sysctl fs.suid_dumpable=1
fs.suid_dumpable = 1
+ source /stress_tests.lib
++ OK='\tOK\t\N\t'
++ FAIL='\tFAIL\t\N\t'
++ FAILURE_CONTEXT_LINES=100
++ FAILURE_CONTEXT_MAX_LINE_WIDTH=300
+ source /utils.lib
++ sysctl kernel.core_pattern=core.%e.%p-%P
kernel.core_pattern = core.%e.%p-%P
++ sysctl fs.suid_dumpable=1
fs.suid_dumpable = 1
+ install_packages package_folder
+ dpkg -i package_folder/clickhouse-common-static_24.8.14.10029.altinitytest_amd64.deb
Selecting previously unselected package clickhouse-common-static.
(Reading database ... 48692 files and directories currently installed.)
Preparing to unpack .../clickhouse-common-static_24.8.14.10029.altinitytest_amd64.deb ...
Unpacking clickhouse-common-static (24.8.14.10029.altinitytest) ...
Setting up clickhouse-common-static (24.8.14.10029.altinitytest) ...
+ dpkg -i package_folder/clickhouse-common-static-dbg_24.8.14.10029.altinitytest_amd64.deb
Selecting previously unselected package clickhouse-common-static-dbg.
(Reading database ... 48719 files and directories currently installed.)
Preparing to unpack .../clickhouse-common-static-dbg_24.8.14.10029.altinitytest_amd64.deb ...
Unpacking clickhouse-common-static-dbg (24.8.14.10029.altinitytest) ...
Setting up clickhouse-common-static-dbg (24.8.14.10029.altinitytest) ...
+ dpkg -i package_folder/clickhouse-server_24.8.14.10029.altinitytest_amd64.deb
Selecting previously unselected package clickhouse-server.
(Reading database ... 48726 files and directories currently installed.)
Preparing to unpack .../clickhouse-server_24.8.14.10029.altinitytest_amd64.deb ...
Unpacking clickhouse-server (24.8.14.10029.altinitytest) ...
Setting up clickhouse-server (24.8.14.10029.altinitytest) ...
ClickHouse binary is already located at /usr/bin/clickhouse
Symlink /usr/bin/clickhouse-server already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-server to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-client to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-local to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-benchmark to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-obfuscator to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-git-import to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-compressor to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-format to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-extract-from-config already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-extract-from-config to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-keeper already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-keeper to /usr/bin/clickhouse.
Symlink /usr/bin/clickhouse-keeper-converter already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-keeper-converter to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-disks to /usr/bin/clickhouse.
Creating symlink /usr/bin/ch to /usr/bin/clickhouse.
Creating symlink /usr/bin/chl to /usr/bin/clickhouse.
Creating symlink /usr/bin/chc to /usr/bin/clickhouse.
Creating clickhouse group if it does not exist.
 groupadd -r clickhouse
Creating clickhouse user if it does not exist.
 useradd -r --shell /bin/false --home-dir /nonexistent -g clickhouse clickhouse
Will set ulimits for clickhouse user in /etc/security/limits.d/clickhouse.conf.
Creating config directory /etc/clickhouse-server/config.d that is used for tweaks of main server configuration.
Creating config directory /etc/clickhouse-server/users.d that is used for tweaks of users configuration.
Config file /etc/clickhouse-server/config.xml already exists, will keep it and extract path info from it.
/etc/clickhouse-server/config.xml has /var/lib/clickhouse/ as data path.
/etc/clickhouse-server/config.xml has /var/log/clickhouse-server/ as log path.
Users config file /etc/clickhouse-server/users.xml already exists, will keep it and extract users info from it.
Log directory /var/log/clickhouse-server/ already exists.
Creating data directory /var/lib/clickhouse/.
Creating pid directory /var/run/clickhouse-server.
 chown -R clickhouse:clickhouse '/var/log/clickhouse-server/'
 chown -R clickhouse:clickhouse '/var/run/clickhouse-server'
 chown  clickhouse:clickhouse '/var/lib/clickhouse/'
Password for the default user is an empty string. See /etc/clickhouse-server/users.xml and /etc/clickhouse-server/users.d to change it.
Setting capabilities for clickhouse binary. This is optional.
 chown -R clickhouse:clickhouse '/etc/clickhouse-server'
ClickHouse has been successfully installed.
Start clickhouse-server with:
 sudo clickhouse start
Start clickhouse-client with:
 clickhouse-client
+ dpkg -i package_folder/clickhouse-client_24.8.14.10029.altinitytest_amd64.deb
Selecting previously unselected package clickhouse-client.
(Reading database ... 48743 files and directories currently installed.)
Preparing to unpack .../clickhouse-client_24.8.14.10029.altinitytest_amd64.deb ...
Unpacking clickhouse-client (24.8.14.10029.altinitytest) ...
Setting up clickhouse-client (24.8.14.10029.altinitytest) ...
+ export THREAD_FUZZER_CPU_TIME_PERIOD_US=1000
+ THREAD_FUZZER_CPU_TIME_PERIOD_US=1000
+ export THREAD_FUZZER_SLEEP_PROBABILITY=0.1
+ THREAD_FUZZER_SLEEP_PROBABILITY=0.1
+ export THREAD_FUZZER_SLEEP_TIME_US_MAX=100000
+ THREAD_FUZZER_SLEEP_TIME_US_MAX=100000
+ export THREAD_FUZZER_pthread_mutex_lock_BEFORE_MIGRATE_PROBABILITY=1
+ THREAD_FUZZER_pthread_mutex_lock_BEFORE_MIGRATE_PROBABILITY=1
+ export THREAD_FUZZER_pthread_mutex_lock_AFTER_MIGRATE_PROBABILITY=1
+ THREAD_FUZZER_pthread_mutex_lock_AFTER_MIGRATE_PROBABILITY=1
+ export THREAD_FUZZER_pthread_mutex_unlock_BEFORE_MIGRATE_PROBABILITY=1
+ THREAD_FUZZER_pthread_mutex_unlock_BEFORE_MIGRATE_PROBABILITY=1
+ export THREAD_FUZZER_pthread_mutex_unlock_AFTER_MIGRATE_PROBABILITY=1
+ THREAD_FUZZER_pthread_mutex_unlock_AFTER_MIGRATE_PROBABILITY=1
+ export THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_PROBABILITY=0.001
+ THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_PROBABILITY=0.001
+ export THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_PROBABILITY=0.001
+ THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_PROBABILITY=0.001
+ export THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_PROBABILITY=0.001
+ THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_PROBABILITY=0.001
+ export THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_PROBABILITY=0.001
+ THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_PROBABILITY=0.001
+ export THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_TIME_US_MAX=10000
+ THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_TIME_US_MAX=10000
+ export THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_TIME_US_MAX=10000
+ THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_TIME_US_MAX=10000
+ export THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_TIME_US_MAX=10000
+ THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_TIME_US_MAX=10000
+ export THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_TIME_US_MAX=10000
+ THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_TIME_US_MAX=10000
+ export THREAD_FUZZER_EXPLICIT_SLEEP_PROBABILITY=0.01
+ THREAD_FUZZER_EXPLICIT_SLEEP_PROBABILITY=0.01
+ export THREAD_FUZZER_EXPLICIT_MEMORY_EXCEPTION_PROBABILITY=0.01
+ THREAD_FUZZER_EXPLICIT_MEMORY_EXCEPTION_PROBABILITY=0.01
+ export ZOOKEEPER_FAULT_INJECTION=1
+ ZOOKEEPER_FAULT_INJECTION=1
+ configure
+ export USE_DATABASE_ORDINARY=1
+ USE_DATABASE_ORDINARY=1
+ export EXPORT_S3_STORAGE_POLICIES=1
+ EXPORT_S3_STORAGE_POLICIES=1
+ /usr/share/clickhouse-test/config/install.sh
+ DEST_SERVER_PATH=/etc/clickhouse-server
+ DEST_CLIENT_PATH=/etc/clickhouse-client
+++ dirname /usr/share/clickhouse-test/config/install.sh
++ cd /usr/share/clickhouse-test/config
++ pwd -P
+ SRC_PATH=/usr/share/clickhouse-test/config
+ echo 'Going to install test configs from /usr/share/clickhouse-test/config into /etc/clickhouse-server'
+ mkdir -p /etc/clickhouse-server/config.d/
Going to install test configs from /usr/share/clickhouse-test/config into /etc/clickhouse-server
+ mkdir -p /etc/clickhouse-server/users.d/
+ mkdir -p /etc/clickhouse-client
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_write.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/max_num_to_warn.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/listen.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/text_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/blob_storage_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/custom_settings_prefixes.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/database_catalog_drop_table_concurrency.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_access_control_improvements.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/macros.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/secure_ports.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/clusters.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/graphite.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/graphite_alternative.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/grpc_protocol.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/database_atomic.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/max_concurrent_queries.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree_settings.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/backoff_failed_mutation.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree_old_dirs_cleanup.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/test_cluster_with_incorrect_pw.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/keeper_port.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/logging_no_rotate.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/lost_forever_check.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/tcp_with_proxy.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/prometheus.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/top_level_domains_lists.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/top_level_domains_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/transactions.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/encryption.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/CORS.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/logger_trace.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/named_collection.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/ssl_certs.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/filesystem_cache_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/session_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/system_unfreeze.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_zero_copy_replication.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/nlp.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/forbidden_headers.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_keeper_map.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/custom_disks_base_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/display_name.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/compressed_marks_and_index.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/disable_s3_env_credentials.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_wait_for_shutdown_replicated_tables.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/backups.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/filesystem_caches_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/validate_tcp_client_information.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/zero_copy_destructive_operations.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/block_number.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/handlers.yaml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/serverwide_trace_collector.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/rocksdb.xml /etc/clickhouse-server/config.d/
+ '[' /etc/clickhouse-server = /etc/clickhouse-server ']'
+ ln -sf /usr/share/clickhouse-test/config/config.d/legacy_geobase.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/log_queries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/readonly.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/access_management.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/database_atomic_drop_detach_sync.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/opentelemetry.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/remote_queries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/session_log_test.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/memory_profiler.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/no_fsync_metadata.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/filelog.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/enable_blobs_check.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/marks.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/insert_keeper_retries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/prefetch_settings.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/nonconst_timezone.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/allow_introspection_functions.yaml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/replicated_ddl_entry.xml /etc/clickhouse-server/users.d/
+ [[ -n '' ]]
+ ln -sf /usr/share/clickhouse-test/config/users.d/timeouts.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/ints_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/strings_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/decimals_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/executable_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/executable_pool_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/test_function.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/top_level_domains /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/regions_hierarchy.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/regions_names_en.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/ext-en.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/ext-ru.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/lem-en.bin /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/server.key /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/server.crt /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/dhparam.pem /etc/clickhouse-server/
+ ln -sf --backup=simple --suffix=_original.xml /usr/share/clickhouse-test/config/config.d/query_masking_rules.xml /etc/clickhouse-server/config.d/
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ rm -f /etc/clickhouse-server/config.d/zookeeper.xml
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_fault_injection.xml /etc/clickhouse-server/config.d/
+ [[ -n '' ]]
+ rm -f /etc/clickhouse-server/config.d/cannot_allocate_thread_injection.xml
+ value=1
+ sed --follow-symlinks -i 's|[01]|1|' /etc/clickhouse-server/config.d/keeper_port.xml
+ value=11550720
+ sed --follow-symlinks -i 's|[[:digit:]]\+|11550720|' /etc/clickhouse-server/config.d/keeper_port.xml
+ value=12523520
+ sed --follow-symlinks -i 's|[[:digit:]]\+|12523520|' /etc/clickhouse-server/config.d/keeper_port.xml
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ ln -sf /usr/share/clickhouse-test/config/users.d/database_ordinary.xml /etc/clickhouse-server/users.d/
+ [[ '' == \1 ]]
+ [[ '' == \1 ]]
+ [[ -n 1 ]]
+ ln -sf /usr/share/clickhouse-test/config/config.d/azure_storage_conf.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02944.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02963.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02961.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/s3_cache.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/s3_cache_new.xml /etc/clickhouse-server/users.d/
+ [[ -n '' ]]
+ ln -sf /usr/share/clickhouse-test/config/client_config.xml /etc/clickhouse-client/config.xml
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|100000|10000|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ randomize_config_boolean_value filtered_list keeper_port
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value multi_read keeper_port
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value check_not_exists keeper_port
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value create_if_not_exists keeper_port
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /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
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ randomize_config_boolean_value use_compression zookeeper_fault_injection
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml.tmp /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml
+ randomize_config_boolean_value enable_block_number_column block_number
+ value=1
+ sudo cat /etc/clickhouse-server/config.d/block_number.xml
+ sed 's|[01]|1|'
+ sudo mv /etc/clickhouse-server/config.d/block_number.xml.tmp /etc/clickhouse-server/config.d/block_number.xml
+ randomize_config_boolean_value enable_block_offset_column block_number
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/block_number.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/block_number.xml.tmp /etc/clickhouse-server/config.d/block_number.xml
+ echo 'ASAN_OPTIONS='\''malloc_context_size=10 verbosity=1 allocator_release_to_os_interval_ms=10000'\'''
+ export 'ASAN_OPTIONS=malloc_context_size=10 allocator_release_to_os_interval_ms=10000'
+ ASAN_OPTIONS='malloc_context_size=10 allocator_release_to_os_interval_ms=10000'
+ sudo chown root: /var/lib/clickhouse
+ local total_mem
++ awk '/MemTotal/ { print $(NF-1) }' /proc/meminfo
+ total_mem=32086440
+ total_mem=32856514560
+ max_server_memory_usage_to_ram_ratio=0.5
Setting max_server_memory_usage_to_ram_ratio to 0.5
+ echo 'Setting max_server_memory_usage_to_ram_ratio to 0.5'
+ cat
+ local max_users_mem
+ max_users_mem=9856954368
+ echo 'Setting max_memory_usage_for_user=9856954368 and max_memory_usage for queries to 10G'
+ cat
Setting max_memory_usage_for_user=9856954368 and max_memory_usage for queries to 10G
+ cat
+ ./setup_minio.sh stateless
+ azurite-blob --blobHost 0.0.0.0 --blobPort 10000 --debug /azurite_log
+ export MINIO_ROOT_USER=clickhouse
+ MINIO_ROOT_USER=clickhouse
+ export MINIO_ROOT_PASSWORD=clickhouse
+ MINIO_ROOT_PASSWORD=clickhouse
+ main stateless
+ local query_dir
++ check_arg stateless
++ local query_dir
++ '[' '!' 1 -eq 1 ']'
++ case "$1" in
++ query_dir=0_stateless
++ echo 0_stateless
+ query_dir=0_stateless
+ '[' '!' -f ./minio ']'
+ start_minio
+ mkdir -p ./minio_data
+ ./minio --version
minio version RELEASE.2024-08-03T04-33-23Z (commit-id=6efb56851c40da88d1ca15112e2d686a4ecec6b3)
Runtime: go1.22.5 linux/amd64
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Copyright: 2015-2024 MinIO, Inc.
+ wait_for_it
+ local counter=0
+ local max_counter=60
+ local url=http://localhost:11111
+ params=('--silent' '--verbose')
+ local params
+ ./minio server --address :11111 ./minio_data
+ curl --silent --verbose http://localhost:11111
+ grep AccessDenied
+ [[ 0 == \6\0 ]]
+ echo 'trying to connect to minio'
+ sleep 1
trying to connect to minio
Azurite Blob service is starting on 0.0.0.0:10000
Azurite Blob service successfully listens on http://0.0.0.0:10000
INFO: Formatting 1st pool, 1 set(s), 1 drives per set.
INFO: WARNING: Host local has more than 0 drives of set. A host failure will result in data becoming unavailable.
MinIO Object Storage Server
Copyright: 2015-2025 MinIO, Inc.
License: GNU AGPLv3 - https://www.gnu.org/licenses/agpl-3.0.html
Version: RELEASE.2024-08-03T04-33-23Z (go1.22.5 linux/amd64)
API: http://172.17.0.2:11111  http://127.0.0.1:11111 
WebUI: http://172.17.0.2:34287 http://127.0.0.1:34287    
Docs: https://min.io/docs/minio/linux/index.html
+ counter=1
+ curl --silent --verbose http://localhost:11111
+ grep AccessDenied
AccessDeniedAccess Denied./18462932508C8A2D7dc7eb22d3288ec80374614e9088e31d3668a6922ead55932dd2a8e56373820f
+ lsof -i :11111
COMMAND PID USER   FD   TYPE DEVICE SIZE/OFF NODE NAME
minio   276 root    8u  IPv6  22962      0t0  TCP *:11111 (LISTEN)
minio   276 root    9u  IPv4  22961      0t0  TCP localhost:11111 (LISTEN)
minio   276 root   10u  IPv6  22963      0t0  TCP localhost:11111 (LISTEN)
+ sleep 5
+ setup_minio stateless
+ local test_type=stateless
+ ./mc alias set clickminio http://localhost:11111 clickhouse clickhouse
Added `clickminio` successfully.
+ ./mc admin user add clickminio test testtest
Added user `test` successfully.
+ ./mc admin policy attach clickminio readwrite --user=test
Attached Policies: [readwrite]
To User: test
+ ./mc mb --ignore-existing clickminio/test
Bucket created successfully `clickminio/test`.
+ '[' stateless = stateless ']'
+ ./mc anonymous set public clickminio/test
Access permission for `clickminio/test` is set to `public`
+ upload_data 0_stateless /usr/share/clickhouse-test
+ local query_dir=0_stateless
+ local test_path=/usr/share/clickhouse-test
+ local data_path=/usr/share/clickhouse-test/queries/0_stateless/data_minio
+ '[' -d /usr/share/clickhouse-test/queries/0_stateless/data_minio ']'
+ ./mc cp --recursive /usr/share/clickhouse-test/queries/0_stateless/data_minio/ clickminio/test/
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/02731.parquet` -> `clickminio/test/02731.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_archive1.zip` -> `clickminio/test/03036_archive1.zip`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/02366_data.jsonl` -> `clickminio/test/02366_data.jsonl`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/02731.arrow` -> `clickminio/test/02731.arrow`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/02876.parquet` -> `clickminio/test/02876.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_archive2.tar` -> `clickminio/test/03036_archive2.tar`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_archive1.tar` -> `clickminio/test/03036_archive1.tar`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_archive2.zip` -> `clickminio/test/03036_archive2.zip`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_archive3.tar.gz` -> `clickminio/test/03036_archive3.tar.gz`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_compressed_file_archive.zip` -> `clickminio/test/03036_compressed_file_archive.zip`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/hive_partitioning/column0=Elizabeth/column1=Gordon/sample.parquet` -> `clickminio/test/hive_partitioning/column0=Elizabeth/column1=Gordon/sample.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/03036_json_archive.zip` -> `clickminio/test/03036_json_archive.zip`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/hive_partitioning/column0=Elizabeth/column1=Schmidt/sample.parquet` -> `clickminio/test/hive_partitioning/column0=Elizabeth/column1=Schmidt/sample.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/a.tsv` -> `clickminio/test/a.tsv`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/b.tsv` -> `clickminio/test/b.tsv`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/c.tsv` -> `clickminio/test/c.tsv`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/hive_partitioning/column0=Elizabeth/sample.parquet` -> `clickminio/test/hive_partitioning/column0=Elizabeth/sample.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/hive_partitioning/non_existing_column=Elizabeth/sample.parquet` -> `clickminio/test/hive_partitioning/non_existing_column=Elizabeth/sample.parquet`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/json_data` -> `clickminio/test/json_data`
`/usr/share/clickhouse-test/queries/0_stateless/data_minio/tsv_with_header.tsv` -> `clickminio/test/tsv_with_header.tsv`
Total: 5.42 MiB, Transferred: 5.42 MiB, Speed: 171.60 MiB/s
+ setup_aws_credentials
+ local minio_root_user=clickhouse
+ local minio_root_password=clickhouse
+ mkdir -p /root/.aws
+ cat
+ config_logs_export_cluster /etc/clickhouse-server/config.d/system_logs_export.yaml
+ set +x
File /tmp/export-logs-config.sh does not exist, do not setup
+ start_server
+ counter=0
+ max_attempt=120
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 0 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=1
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 1 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=2
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 2 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=3
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 3 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=4
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 4 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=5
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 5 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=6
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 6 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=7
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 7 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=8
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 8 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=9
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 9 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=10
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 10 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=11
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 11 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=12
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 12 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=13
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 13 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 404 -
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "PUT /devstoreaccount1/cont?restype=container HTTP/1.1" 201 -
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "PUT /devstoreaccount1/cont/uohdokwkgnqpxcqqcktftipvsprudlsw HTTP/1.1" 201 -
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "GET /devstoreaccount1/cont/uohdokwkgnqpxcqqcktftipvsprudlsw HTTP/1.1" 206 4
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "GET /devstoreaccount1/cont/uohdokwkgnqpxcqqcktftipvsprudlsw HTTP/1.1" 206 2
127.0.0.1 - - [05/Jun/2025:13:40:15 +0000] "DELETE /devstoreaccount1/cont/uohdokwkgnqpxcqqcktftipvsprudlsw HTTP/1.1" 202 -
+ counter=14
+ clickhouse-client --query 'SELECT 1'
1
+ attach_gdb_to_clickhouse
++ run_with_retry 5 clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ [[ hxB =~ e ]]
++ set_e=false
++ set +e
++ local total_retries=5
++ shift
++ local retry=0
++ '[' 0 -ge 5 ']'
++ clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ false
++ return
+ IS_ASAN=0
+ [[ 0 = \1 ]]
++ kill -l SIGRTMIN
+ RTMIN=34
+ echo '
        set follow-fork-mode parent
        handle SIGHUP nostop noprint pass
        handle SIGINT nostop noprint pass
        handle SIGQUIT nostop noprint pass
        handle SIGPIPE nostop noprint pass
        handle SIGTERM nostop noprint pass
        handle SIGUSR1 nostop noprint pass
        handle SIGUSR2 nostop noprint pass
        handle SIG34 nostop noprint pass
        info signals
        continue
        backtrace full
        info registers
        p top' 1 KiB of the 'stack:
        p/x *(uint64_t[128]*)$sp
        maintenance info sections
        thread apply all backtrace full
        disassemble /s
        up
        disassemble /s
        up
        disassemble /s
        p "done"
        detach
        quit
        '
+ sleep 5
+ ts '%Y-%m-%d %H:%M:%S'
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ gdb -batch -command script.gdb -p 410
+ run_with_retry 60 clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
+ [[ hxB =~ e ]]
+ set_e=false
+ set +e
+ local total_retries=60
+ shift
+ local retry=0
+ '[' 0 -ge 60 ']'
+ clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
Connected to clickhouse-server after attaching gdb
+ false
+ return
+ setup_logs_replication
+ set +x
File /tmp/export-logs-config.sh does not exist, do not setup
+ clickhouse-client --query 'CREATE DATABASE datasets'
+ clickhouse-client --multiquery
+ clickhouse-client --query 'SHOW TABLES FROM datasets'
hits_v1
visits_v1
+ clickhouse-client --query 'CREATE DATABASE IF NOT EXISTS test'
+ stop_server
+ local max_tries=90
+ local check_hang=true
+ local pid
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ pid=410
+ clickhouse stop --max-tries 90 --do-not-kill
script.gdb:13: Error in sourced command file:
No stack.
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Sent terminate signal to process with pid 410.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 410.
The process with pid = 410 is running.
Waiting for server to stop
Now there is no clickhouse-server process.
Server stopped
+ return
+ mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/clickhouse-server.initial.log
+ cache_policy=
+ '[' 0 -eq 1 ']'
+ cache_policy=LRU
+ echo 'Using cache policy: LRU'
+ '[' LRU = SLRU ']'
+ sudo cat /etc/clickhouse-server/users.d/stress_tests_overrides.xml
Using cache policy: LRU
cat: /etc/clickhouse-server/users.d/stress_tests_overrides.xml: No such file or directory
+ start_server
+ counter=0
+ max_attempt=120
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 0 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=1
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 1 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=2
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 2 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=3
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 3 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=4
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 4 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=5
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 5 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=6
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 6 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=7
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 7 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=8
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 8 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=9
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 9 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=10
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 10 -gt 120 ']'
+ clickhouse start --user root
127.0.0.1 - - [05/Jun/2025:13:41:16 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
+ sleep 0.5
127.0.0.1 - - [05/Jun/2025:13:41:16 +0000] "PUT /devstoreaccount1/cont/xutjqibljhdwzxbhpakxhkhbzegjcwxo HTTP/1.1" 201 -
127.0.0.1 - - [05/Jun/2025:13:41:16 +0000] "GET /devstoreaccount1/cont/xutjqibljhdwzxbhpakxhkhbzegjcwxo HTTP/1.1" 206 4
127.0.0.1 - - [05/Jun/2025:13:41:16 +0000] "GET /devstoreaccount1/cont/xutjqibljhdwzxbhpakxhkhbzegjcwxo HTTP/1.1" 206 2
127.0.0.1 - - [05/Jun/2025:13:41:16 +0000] "DELETE /devstoreaccount1/cont/xutjqibljhdwzxbhpakxhkhbzegjcwxo HTTP/1.1" 202 -
+ counter=11
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 11 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=12
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 12 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=13
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 13 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=14
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 14 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=15
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 15 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=16
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 16 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=17
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 17 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=18
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 18 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=19
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 19 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=20
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 20 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=21
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 21 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=22
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 22 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=23
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 23 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=24
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 24 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=25
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 25 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=26
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 26 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=27
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 27 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=28
+ clickhouse-client --query 'SELECT 1'
1
+ attach_gdb_to_clickhouse
++ run_with_retry 5 clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ [[ hxB =~ e ]]
++ set_e=false
++ set +e
++ local total_retries=5
++ shift
++ local retry=0
++ '[' 0 -ge 5 ']'
++ clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ false
++ return
+ IS_ASAN=0
+ [[ 0 = \1 ]]
++ kill -l SIGRTMIN
+ RTMIN=34
+ echo '
        set follow-fork-mode parent
        handle SIGHUP nostop noprint pass
        handle SIGINT nostop noprint pass
        handle SIGQUIT nostop noprint pass
        handle SIGPIPE nostop noprint pass
        handle SIGTERM nostop noprint pass
        handle SIGUSR1 nostop noprint pass
        handle SIGUSR2 nostop noprint pass
        handle SIG34 nostop noprint pass
        info signals
        continue
        backtrace full
        info registers
        p top' 1 KiB of the 'stack:
        p/x *(uint64_t[128]*)$sp
        maintenance info sections
        thread apply all backtrace full
        disassemble /s
        up
        disassemble /s
        up
        disassemble /s
        p "done"
        detach
        quit
        '
+ sleep 5
+ ts '%Y-%m-%d %H:%M:%S'
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ gdb -batch -command script.gdb -p 1373
+ run_with_retry 60 clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
+ [[ hxB =~ e ]]
+ set_e=false
+ set +e
+ local total_retries=60
+ shift
+ local retry=0
+ '[' 0 -ge 60 ']'
+ clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
Connected to clickhouse-server after attaching gdb
+ false
+ return
+ clickhouse-client --query 'SHOW TABLES FROM datasets'
hits_v1
visits_v1
+ clickhouse-client --query 'SHOW TABLES FROM test'
+ [[ '' == \1 ]]
+ [[ '' == \1 ]]
+ TEMP_POLICY=default
+ clickhouse-client --query 'CREATE TABLE test.hits_s3 (WatchID UInt64,  JavaEnable UInt8,  Title String,  GoodEvent Int16,
    EventTime DateTime,  EventDate Date,  CounterID UInt32,  ClientIP UInt32,  ClientIP6 FixedString(16),  RegionID UInt32,
    UserID UInt64,  CounterClass Int8,  OS UInt8,  UserAgent UInt8,  URL String,  Referer String,  URLDomain String,  RefererDomain String,
    Refresh UInt8,  IsRobot UInt8,  RefererCategories Array(UInt16),  URLCategories Array(UInt16), URLRegions Array(UInt32),
    RefererRegions Array(UInt32),  ResolutionWidth UInt16,  ResolutionHeight UInt16,  ResolutionDepth UInt8,  FlashMajor UInt8,
    FlashMinor UInt8,  FlashMinor2 String,  NetMajor UInt8,  NetMinor UInt8, UserAgentMajor UInt16,  UserAgentMinor FixedString(2),
    CookieEnable UInt8, JavascriptEnable UInt8,  IsMobile UInt8,  MobilePhone UInt8,  MobilePhoneModel String,  Params String,
    IPNetworkID UInt32,  TraficSourceID Int8, SearchEngineID UInt16,  SearchPhrase String,  AdvEngineID UInt8,  IsArtifical UInt8,
    WindowClientWidth UInt16,  WindowClientHeight UInt16,  ClientTimeZone Int16,  ClientEventTime DateTime,  SilverlightVersion1 UInt8,
    SilverlightVersion2 UInt8,  SilverlightVersion3 UInt32,  SilverlightVersion4 UInt16,  PageCharset String,  CodeVersion UInt32,
    IsLink UInt8,  IsDownload UInt8,  IsNotBounce UInt8,  FUniqID UInt64,  HID UInt32,  IsOldCounter UInt8, IsEvent UInt8,
    IsParameter UInt8,  DontCountHits UInt8,  WithHash UInt8, HitColor FixedString(1),  UTCEventTime DateTime,  Age UInt8,
    Sex UInt8,  Income UInt8,  Interests UInt16,  Robotness UInt8,  GeneralInterests Array(UInt16), RemoteIP UInt32,
    RemoteIP6 FixedString(16),  WindowName Int32,  OpenerName Int32,  HistoryLength Int16,  BrowserLanguage FixedString(2),
    BrowserCountry FixedString(2),  SocialNetwork String,  SocialAction String,  HTTPError UInt16, SendTiming Int32,
    DNSTiming Int32,  ConnectTiming Int32,  ResponseStartTiming Int32,  ResponseEndTiming Int32,  FetchTiming Int32,
    RedirectTiming Int32, DOMInteractiveTiming Int32,  DOMContentLoadedTiming Int32,  DOMCompleteTiming Int32,
    LoadEventStartTiming Int32,  LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32,  FirstPaintTiming Int32,
    RedirectCount Int8, SocialSourceNetworkID UInt8,  SocialSourcePage String,  ParamPrice Int64, ParamOrderID String,
    ParamCurrency FixedString(3),  ParamCurrencyID UInt16, GoalsReached Array(UInt32),  OpenstatServiceName String,
    OpenstatCampaignID String,  OpenstatAdID String,  OpenstatSourceID String,  UTMSource String, UTMMedium String,
    UTMCampaign String,  UTMContent String,  UTMTerm String, FromTag String,  HasGCLID UInt8,  RefererHash UInt64,
    URLHash UInt64,  CLID UInt32,  YCLID UInt64,  ShareService String,  ShareURL String,  ShareTitle String,
    ParsedParams Nested(Key1 String,  Key2 String, Key3 String, Key4 String, Key5 String,  ValueDouble Float64),
    IslandID FixedString(16),  RequestNum UInt32,  RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate)
    ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='\''default'\'''
+ clickhouse-client --query 'CREATE TABLE test.hits (WatchID UInt64,  JavaEnable UInt8,  Title String,  GoodEvent Int16,
    EventTime DateTime,  EventDate Date,  CounterID UInt32,  ClientIP UInt32,  ClientIP6 FixedString(16),  RegionID UInt32,
    UserID UInt64,  CounterClass Int8,  OS UInt8,  UserAgent UInt8,  URL String,  Referer String,  URLDomain String,
    RefererDomain String,  Refresh UInt8,  IsRobot UInt8,  RefererCategories Array(UInt16),  URLCategories Array(UInt16),
    URLRegions Array(UInt32),  RefererRegions Array(UInt32),  ResolutionWidth UInt16,  ResolutionHeight UInt16,  ResolutionDepth UInt8,
    FlashMajor UInt8, FlashMinor UInt8,  FlashMinor2 String,  NetMajor UInt8,  NetMinor UInt8, UserAgentMajor UInt16,
    UserAgentMinor FixedString(2),  CookieEnable UInt8, JavascriptEnable UInt8,  IsMobile UInt8,  MobilePhone UInt8,
    MobilePhoneModel String,  Params String,  IPNetworkID UInt32,  TraficSourceID Int8, SearchEngineID UInt16,
    SearchPhrase String,  AdvEngineID UInt8,  IsArtifical UInt8,  WindowClientWidth UInt16,  WindowClientHeight UInt16,
    ClientTimeZone Int16,  ClientEventTime DateTime,  SilverlightVersion1 UInt8, SilverlightVersion2 UInt8,  SilverlightVersion3 UInt32,
    SilverlightVersion4 UInt16,  PageCharset String,  CodeVersion UInt32,  IsLink UInt8,  IsDownload UInt8,  IsNotBounce UInt8,
    FUniqID UInt64,  HID UInt32,  IsOldCounter UInt8, IsEvent UInt8,  IsParameter UInt8,  DontCountHits UInt8,  WithHash UInt8,
    HitColor FixedString(1),  UTCEventTime DateTime,  Age UInt8,  Sex UInt8,  Income UInt8,  Interests UInt16,  Robotness UInt8,
    GeneralInterests Array(UInt16), RemoteIP UInt32,  RemoteIP6 FixedString(16),  WindowName Int32,  OpenerName Int32,
    HistoryLength Int16,  BrowserLanguage FixedString(2),  BrowserCountry FixedString(2),  SocialNetwork String,  SocialAction String,
    HTTPError UInt16, SendTiming Int32,  DNSTiming Int32,  ConnectTiming Int32,  ResponseStartTiming Int32,  ResponseEndTiming Int32,
    FetchTiming Int32,  RedirectTiming Int32, DOMInteractiveTiming Int32,  DOMContentLoadedTiming Int32,  DOMCompleteTiming Int32,
    LoadEventStartTiming Int32,  LoadEventEndTiming Int32, NSToDOMContentLoadedTiming Int32,  FirstPaintTiming Int32,
    RedirectCount Int8, SocialSourceNetworkID UInt8,  SocialSourcePage String,  ParamPrice Int64, ParamOrderID String,
    ParamCurrency FixedString(3),  ParamCurrencyID UInt16, GoalsReached Array(UInt32),  OpenstatServiceName String,
    OpenstatCampaignID String,  OpenstatAdID String,  OpenstatSourceID String,  UTMSource String, UTMMedium String,
    UTMCampaign String,  UTMContent String,  UTMTerm String, FromTag String,  HasGCLID UInt8,  RefererHash UInt64,
    URLHash UInt64,  CLID UInt32,  YCLID UInt64,  ShareService String,  ShareURL String,  ShareTitle String,
    ParsedParams Nested(Key1 String,  Key2 String, Key3 String, Key4 String, Key5 String,  ValueDouble Float64),
    IslandID FixedString(16),  RequestNum UInt32,  RequestTry UInt8) ENGINE = MergeTree() PARTITION BY toYYYYMM(EventDate)
    ORDER BY (CounterID, EventDate, intHash32(UserID)) SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='\''default'\'''
+ clickhouse-client --query 'CREATE TABLE test.visits (CounterID UInt32,  StartDate Date,  Sign Int8,  IsNew UInt8,
    VisitID UInt64,  UserID UInt64,  StartTime DateTime,  Duration UInt32,  UTCStartTime DateTime,  PageViews Int32,
    Hits Int32,  IsBounce UInt8,  Referer String,  StartURL String,  RefererDomain String,  StartURLDomain String,
    EndURL String,  LinkURL String,  IsDownload UInt8,  TraficSourceID Int8,  SearchEngineID UInt16,  SearchPhrase String,
    AdvEngineID UInt8,  PlaceID Int32,  RefererCategories Array(UInt16),  URLCategories Array(UInt16),  URLRegions Array(UInt32),
    RefererRegions Array(UInt32),  IsYandex UInt8,  GoalReachesDepth Int32,  GoalReachesURL Int32,  GoalReachesAny Int32,
    SocialSourceNetworkID UInt8,  SocialSourcePage String,  MobilePhoneModel String,  ClientEventTime DateTime,  RegionID UInt32,
    ClientIP UInt32,  ClientIP6 FixedString(16),  RemoteIP UInt32,  RemoteIP6 FixedString(16),  IPNetworkID UInt32,
    SilverlightVersion3 UInt32,  CodeVersion UInt32,  ResolutionWidth UInt16,  ResolutionHeight UInt16,  UserAgentMajor UInt16,
    UserAgentMinor UInt16,  WindowClientWidth UInt16,  WindowClientHeight UInt16,  SilverlightVersion2 UInt8,  SilverlightVersion4 UInt16,
    FlashVersion3 UInt16,  FlashVersion4 UInt16,  ClientTimeZone Int16,  OS UInt8,  UserAgent UInt8,  ResolutionDepth UInt8,
    FlashMajor UInt8,  FlashMinor UInt8,  NetMajor UInt8,  NetMinor UInt8,  MobilePhone UInt8,  SilverlightVersion1 UInt8,
    Age UInt8,  Sex UInt8,  Income UInt8,  JavaEnable UInt8,  CookieEnable UInt8,  JavascriptEnable UInt8,  IsMobile UInt8,
    BrowserLanguage UInt16,  BrowserCountry UInt16,  Interests UInt16,  Robotness UInt8,  GeneralInterests Array(UInt16),
    Params Array(String),  Goals Nested(ID UInt32, Serial UInt32, EventTime DateTime,  Price Int64,  OrderID String, CurrencyID UInt32),
    WatchIDs Array(UInt64),  ParamSumPrice Int64,  ParamCurrency FixedString(3),  ParamCurrencyID UInt16,  ClickLogID UInt64,
    ClickEventID Int32,  ClickGoodEvent Int32,  ClickEventTime DateTime,  ClickPriorityID Int32,  ClickPhraseID Int32,  ClickPageID Int32,
    ClickPlaceID Int32,  ClickTypeID Int32,  ClickResourceID Int32,  ClickCost UInt32,  ClickClientIP UInt32,  ClickDomainID UInt32,
    ClickURL String,  ClickAttempt UInt8,  ClickOrderID UInt32,  ClickBannerID UInt32,  ClickMarketCategoryID UInt32,  ClickMarketPP UInt32,
    ClickMarketCategoryName String,  ClickMarketPPName String,  ClickAWAPSCampaignName String,  ClickPageName String,  ClickTargetType UInt16,
    ClickTargetPhraseID UInt64,  ClickContextType UInt8,  ClickSelectType Int8,  ClickOptions String,  ClickGroupBannerID Int32,
    OpenstatServiceName String,  OpenstatCampaignID String,  OpenstatAdID String,  OpenstatSourceID String,  UTMSource String,
    UTMMedium String,  UTMCampaign String,  UTMContent String,  UTMTerm String,  FromTag String,  HasGCLID UInt8,  FirstVisit DateTime,
    PredLastVisit Date,  LastVisit Date,  TotalVisits UInt32,  TraficSource    Nested(ID Int8,  SearchEngineID UInt16, AdvEngineID UInt8,
    PlaceID UInt16, SocialSourceNetworkID UInt8, Domain String, SearchPhrase String, SocialSourcePage String),  Attendance FixedString(16),
    CLID UInt32,  YCLID UInt64,  NormalizedRefererHash UInt64,  SearchPhraseHash UInt64,  RefererDomainHash UInt64,  NormalizedStartURLHash UInt64,
    StartURLDomainHash UInt64,  NormalizedEndURLHash UInt64,  TopLevelDomain UInt64,  URLScheme UInt64,  OpenstatServiceNameHash UInt64,
    OpenstatCampaignIDHash UInt64,  OpenstatAdIDHash UInt64,  OpenstatSourceIDHash UInt64,  UTMSourceHash UInt64,  UTMMediumHash UInt64,
    UTMCampaignHash UInt64,  UTMContentHash UInt64,  UTMTermHash UInt64,  FromHash UInt64,  WebVisorEnabled UInt8,  WebVisorActivity UInt32,
    ParsedParams    Nested(Key1 String,  Key2 String,  Key3 String,  Key4 String, Key5 String, ValueDouble    Float64),
    Market Nested(Type UInt8, GoalID UInt32, OrderID String,  OrderPrice Int64,  PP UInt32,  DirectPlaceID UInt32,  DirectOrderID  UInt32,
    DirectBannerID UInt32,  GoodID String, GoodName String, GoodQuantity Int32,  GoodPrice Int64),  IslandID FixedString(16))
    ENGINE = CollapsingMergeTree(Sign) PARTITION BY toYYYYMM(StartDate) ORDER BY (CounterID, StartDate, intHash32(UserID), VisitID)
    SAMPLE BY intHash32(UserID) SETTINGS index_granularity = 8192, storage_policy='\''default'\'''
+ clickhouse-client --query 'INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16'
Received exception from server (version 24.8.14):
Code: 241. DB::Exception: Received from localhost:9000. DB::Exception: Memory limit (for user) exceeded: would use 9.18 GiB (attempt to allocate chunk of 1050704 bytes), maximum: 9.18 GiB. OvercommitTracker decision: Query was selected to stop by OvercommitTracker.: (avg_value_size_hint = 9.4307861328125, avg_chars_size = 1.7169433593749999, limit = 8192): (while reading column UTMCampaign): (while reading from part store/78e/78ebf6a1-d987-4579-b3ec-00c1a087b1f3/201403_1_1_2/ in table datasets.hits_v1 (78ebf6a1-d987-4579-b3ec-00c1a087b1f3) located on disk __tmp_internal_262634248876485800814430204900764312493 of type web, from mark 88 with max_rows_to_read = 8192): While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (MEMORY_LIMIT_EXCEEDED)
(query: INSERT INTO test.hits_s3 SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16)
+ clickhouse-client --query 'INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16'
Received exception from server (version 24.8.14):
Code: 241. DB::Exception: Received from localhost:9000. DB::Exception: Memory limit (for user) exceeded: would use 9.18 GiB (attempt to allocate chunk of 1050112 bytes), maximum: 9.18 GiB. OvercommitTracker decision: Query was selected to stop by OvercommitTracker.: (while reading column GoalsReached): (while reading from part store/78e/78ebf6a1-d987-4579-b3ec-00c1a087b1f3/201403_1_1_2/ in table datasets.hits_v1 (78ebf6a1-d987-4579-b3ec-00c1a087b1f3) located on disk __tmp_internal_262634248876485800814430204900764312493 of type web, from mark 496 with max_rows_to_read = 8192): While executing MergeTreeSelect(pool: ReadPool, algorithm: Thread). (MEMORY_LIMIT_EXCEEDED)
(query: INSERT INTO test.hits SELECT * FROM datasets.hits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16)
+ clickhouse-client --query 'INSERT INTO test.visits SELECT * FROM datasets.visits_v1 SETTINGS enable_filesystem_cache_on_write_operations=0, max_insert_threads=16'
+ clickhouse-client --query 'DROP TABLE datasets.visits_v1 SYNC'
+ clickhouse-client --query 'DROP TABLE datasets.hits_v1 SYNC'
+ clickhouse-client --query 'SHOW TABLES FROM test'
hits
hits_s3
visits
+ clickhouse-client --query 'SYSTEM STOP THREAD FUZZER'
+ stop_server
+ local max_tries=90
+ local check_hang=true
+ local pid
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ pid=1373
+ clickhouse stop --max-tries 90 --do-not-kill
script.gdb:13: Error in sourced command file:
No stack.
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 1373.
The process with pid = 1373 is running.
Sent terminate signal to process with pid 1373.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 1373.
The process with pid = 1373 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 1373.
The process with pid = 1373 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 1373.
The process with pid = 1373 is running.
Waiting for server to stop
Now there is no clickhouse-server process.
Server stopped
+ return
+ export RANDOMIZE_OBJECT_KEY_TYPE=1
+ RANDOMIZE_OBJECT_KEY_TYPE=1
+ export ZOOKEEPER_FAULT_INJECTION=1
+ ZOOKEEPER_FAULT_INJECTION=1
+ export THREAD_POOL_FAULT_INJECTION=1
+ THREAD_POOL_FAULT_INJECTION=1
+ configure
+ export USE_DATABASE_ORDINARY=1
+ USE_DATABASE_ORDINARY=1
+ export EXPORT_S3_STORAGE_POLICIES=1
+ EXPORT_S3_STORAGE_POLICIES=1
+ /usr/share/clickhouse-test/config/install.sh
+ DEST_SERVER_PATH=/etc/clickhouse-server
+ DEST_CLIENT_PATH=/etc/clickhouse-client
+++ dirname /usr/share/clickhouse-test/config/install.sh
++ cd /usr/share/clickhouse-test/config
++ pwd -P
+ SRC_PATH=/usr/share/clickhouse-test/config
+ echo 'Going to install test configs from /usr/share/clickhouse-test/config into /etc/clickhouse-server'
+ mkdir -p /etc/clickhouse-server/config.d/
Going to install test configs from /usr/share/clickhouse-test/config into /etc/clickhouse-server
+ mkdir -p /etc/clickhouse-server/users.d/
+ mkdir -p /etc/clickhouse-client
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_write.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/max_num_to_warn.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/listen.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/text_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/blob_storage_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/custom_settings_prefixes.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/database_catalog_drop_table_concurrency.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_access_control_improvements.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/macros.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/secure_ports.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/clusters.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/graphite.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/graphite_alternative.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/grpc_protocol.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/database_atomic.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/max_concurrent_queries.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree_settings.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/backoff_failed_mutation.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree_old_dirs_cleanup.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/test_cluster_with_incorrect_pw.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/keeper_port.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/logging_no_rotate.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/merge_tree.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/lost_forever_check.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/tcp_with_proxy.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/prometheus.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/top_level_domains_lists.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/top_level_domains_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/transactions.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/encryption.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/CORS.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/logger_trace.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/named_collection.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/ssl_certs.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/filesystem_cache_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/session_log.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/system_unfreeze.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_zero_copy_replication.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/nlp.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/forbidden_headers.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_keeper_map.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/custom_disks_base_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/display_name.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/compressed_marks_and_index.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/disable_s3_env_credentials.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/enable_wait_for_shutdown_replicated_tables.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/backups.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/filesystem_caches_path.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/validate_tcp_client_information.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/zero_copy_destructive_operations.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/block_number.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/handlers.yaml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/serverwide_trace_collector.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/rocksdb.xml /etc/clickhouse-server/config.d/
+ '[' /etc/clickhouse-server = /etc/clickhouse-server ']'
+ ln -sf /usr/share/clickhouse-test/config/config.d/legacy_geobase.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/log_queries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/readonly.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/access_management.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/database_atomic_drop_detach_sync.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/opentelemetry.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/remote_queries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/session_log_test.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/memory_profiler.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/no_fsync_metadata.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/filelog.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/enable_blobs_check.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/marks.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/insert_keeper_retries.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/prefetch_settings.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/nonconst_timezone.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/allow_introspection_functions.yaml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/replicated_ddl_entry.xml /etc/clickhouse-server/users.d/
+ [[ -n '' ]]
+ ln -sf /usr/share/clickhouse-test/config/users.d/timeouts.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/ints_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/strings_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/decimals_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/executable_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/executable_pool_dictionary.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/test_function.xml /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/top_level_domains /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/regions_hierarchy.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/regions_names_en.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/ext-en.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/ext-ru.txt /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/lem-en.bin /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/server.key /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/server.crt /etc/clickhouse-server/
+ ln -sf /usr/share/clickhouse-test/config/dhparam.pem /etc/clickhouse-server/
+ ln -sf --backup=simple --suffix=_original.xml /usr/share/clickhouse-test/config/config.d/query_masking_rules.xml /etc/clickhouse-server/config.d/
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ rm -f /etc/clickhouse-server/config.d/zookeeper.xml
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper_fault_injection.xml /etc/clickhouse-server/config.d/
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ ln -sf /usr/share/clickhouse-test/config/config.d/cannot_allocate_thread_injection.xml /etc/clickhouse-server/config.d/
+ value=1
+ sed --follow-symlinks -i 's|[01]|1|' /etc/clickhouse-server/config.d/keeper_port.xml
+ value=55246848
+ sed --follow-symlinks -i 's|[[:digit:]]\+|55246848|' /etc/clickhouse-server/config.d/keeper_port.xml
+ value=6404096
+ sed --follow-symlinks -i 's|[[:digit:]]\+|6404096|' /etc/clickhouse-server/config.d/keeper_port.xml
+ [[ -n '' ]]
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ ln -sf /usr/share/clickhouse-test/config/users.d/database_ordinary.xml /etc/clickhouse-server/users.d/
+ [[ '' == \1 ]]
+ [[ '' == \1 ]]
+ [[ -n 1 ]]
+ ln -sf /usr/share/clickhouse-test/config/config.d/azure_storage_conf.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02944.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02963.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf_02961.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/s3_cache.xml /etc/clickhouse-server/users.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/s3_cache_new.xml /etc/clickhouse-server/users.d/
+ [[ -n '' ]]
+ ln -sf /usr/share/clickhouse-test/config/client_config.xml /etc/clickhouse-client/config.xml
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|100000|10000|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ randomize_config_boolean_value filtered_list keeper_port
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value multi_read keeper_port
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value check_not_exists keeper_port
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /etc/clickhouse-server/config.d/keeper_port.xml
+ randomize_config_boolean_value create_if_not_exists keeper_port
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/keeper_port.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/keeper_port.xml.tmp /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
+ [[ -n 1 ]]
+ [[ 1 -eq 1 ]]
+ randomize_config_boolean_value use_compression zookeeper_fault_injection
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml.tmp /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml
+ randomize_config_boolean_value enable_block_number_column block_number
+ value=0
+ sudo cat /etc/clickhouse-server/config.d/block_number.xml
+ sed 's|[01]|0|'
+ sudo mv /etc/clickhouse-server/config.d/block_number.xml.tmp /etc/clickhouse-server/config.d/block_number.xml
+ randomize_config_boolean_value enable_block_offset_column block_number
+ value=0
+ sed 's|[01]|0|'
+ sudo cat /etc/clickhouse-server/config.d/block_number.xml
+ sudo mv /etc/clickhouse-server/config.d/block_number.xml.tmp /etc/clickhouse-server/config.d/block_number.xml
+ echo 'ASAN_OPTIONS='\''malloc_context_size=10 verbosity=1 allocator_release_to_os_interval_ms=10000'\'''
+ export 'ASAN_OPTIONS=malloc_context_size=10 allocator_release_to_os_interval_ms=10000'
+ ASAN_OPTIONS='malloc_context_size=10 allocator_release_to_os_interval_ms=10000'
+ sudo chown root: /var/lib/clickhouse
+ local total_mem
++ awk '/MemTotal/ { print $(NF-1) }' /proc/meminfo
Setting max_server_memory_usage_to_ram_ratio to 0.5
+ total_mem=32086440
+ total_mem=32856514560
+ max_server_memory_usage_to_ram_ratio=0.5
+ echo 'Setting max_server_memory_usage_to_ram_ratio to 0.5'
+ cat
+ local max_users_mem
+ max_users_mem=9856954368
+ echo 'Setting max_memory_usage_for_user=9856954368 and max_memory_usage for queries to 10G'
+ cat
Setting max_memory_usage_for_user=9856954368 and max_memory_usage for queries to 10G
+ cat
+ [[ '' == \1 ]]
+ [[ '' == \1 ]]
+ sudo cat /etc/clickhouse-server/config.d/logger_trace.xml
+ sed 's|trace|test|'
+ mv /etc/clickhouse-server/config.d/logger_trace.xml.tmp /etc/clickhouse-server/config.d/logger_trace.xml
+ '[' LRU = SLRU ']'
++ date +%-d
+ '[' 1 -eq 1 ']'
+ sudo echo 'true'
+ start_server
+ counter=0
+ max_attempt=120
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 0 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=1
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 1 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=2
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 2 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=3
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 3 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=4
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 4 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=5
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 5 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=6
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 6 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=7
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 7 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=8
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 8 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
127.0.0.1 - - [05/Jun/2025:13:44:22 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
127.0.0.1 - - [05/Jun/2025:13:44:22 +0000] "PUT /devstoreaccount1/cont/jdqtdejtoszfyjcxxpyepnaoztpvzckc HTTP/1.1" 201 -
127.0.0.1 - - [05/Jun/2025:13:44:22 +0000] "GET /devstoreaccount1/cont/jdqtdejtoszfyjcxxpyepnaoztpvzckc HTTP/1.1" 206 4
127.0.0.1 - - [05/Jun/2025:13:44:22 +0000] "GET /devstoreaccount1/cont/jdqtdejtoszfyjcxxpyepnaoztpvzckc HTTP/1.1" 206 2
127.0.0.1 - - [05/Jun/2025:13:44:22 +0000] "DELETE /devstoreaccount1/cont/jdqtdejtoszfyjcxxpyepnaoztpvzckc HTTP/1.1" 202 -
+ counter=9
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 9 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=10
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 10 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=11
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 11 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=12
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 12 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=13
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 13 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=14
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 14 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=15
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 15 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=16
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 16 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=17
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 17 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=18
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 18 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=19
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 19 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=20
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 20 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=21
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 21 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=22
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 22 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=23
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 23 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=24
+ clickhouse-client --query 'SELECT 1'
1
+ attach_gdb_to_clickhouse
++ run_with_retry 5 clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ [[ hxB =~ e ]]
++ set_e=false
++ set +e
++ local total_retries=5
++ shift
++ local retry=0
++ '[' 0 -ge 5 ']'
++ clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
Received exception from server (version 24.8.14):
Code: 439. DB::Exception: Received from localhost:9000. DB::Exception: Cannot schedule a task: failed to start the thread (threads=1, jobs=1). (CANNOT_SCHEDULE_TASK)
(query: SELECT count() FROM system.build_options WHERE name = 'CXX_FLAGS' AND position('sanitize=address' IN value))
++ retry=1
++ sleep 5
++ '[' 1 -ge 5 ']'
++ clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ false
++ return
+ IS_ASAN=0
+ [[ 0 = \1 ]]
++ kill -l SIGRTMIN
+ RTMIN=34
+ echo '
        set follow-fork-mode parent
        handle SIGHUP nostop noprint pass
        handle SIGINT nostop noprint pass
        handle SIGQUIT nostop noprint pass
        handle SIGPIPE nostop noprint pass
        handle SIGTERM nostop noprint pass
        handle SIGUSR1 nostop noprint pass
        handle SIGUSR2 nostop noprint pass
        handle SIG34 nostop noprint pass
        info signals
        continue
        backtrace full
        info registers
        p top' 1 KiB of the 'stack:
        p/x *(uint64_t[128]*)$sp
        maintenance info sections
        thread apply all backtrace full
        disassemble /s
        up
        disassemble /s
        up
        disassemble /s
        p "done"
        detach
        quit
        '
+ sleep 5
+ ts '%Y-%m-%d %H:%M:%S'
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ gdb -batch -command script.gdb -p 2955
+ run_with_retry 60 clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
+ [[ hxB =~ e ]]
+ set_e=false
+ set +e
+ local total_retries=60
+ shift
+ local retry=0
+ '[' 0 -ge 60 ']'
+ clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
warning: 14	/build/base/glibc-compatibility/musl/x86_64/syscall.s: No such file or directory
Connected to clickhouse-server after attaching gdb
+ false
+ return
+ stress --hung-check --drop-databases --output-folder test_output --skip-func-tests '' --global-time-limit 1200
2025-06-05 15:44:48,367 Run func tests '/usr/bin/clickhouse-test  --client-option ignore_drop_queries_probability=0.5 enable_parallel_replicas=1 max_parallel_replicas=3 cluster_for_parallel_replicas='parallel_replicas' parallel_replicas_for_non_replicated_merge_tree=1 --global_time_limit=1200  '
2025-06-05 15:44:48,868 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_1  --client-option join_use_nulls=1 join_algorithm='parallel_hash' use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' memory_tracker_fault_probability=0.001 merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability=0.05 group_by_use_nulls=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:49,370 Run func tests '/usr/bin/clickhouse-test --order=random --db-engine="Replicated('/test/db/test_2', 's1', 'r1')"  --client-option enable_deflate_qpl_codec=1 enable_zstd_qat_codec=1 use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:49,871 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_3  --client-option join_algorithm='partial_merge' use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' group_by_use_nulls=1 optimize_trivial_approximate_count_query=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:50,373 Run func tests '/usr/bin/clickhouse-test --order=random  --client-option join_use_nulls=1 use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' http_make_head_request=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:50,874 Run func tests '/usr/bin/clickhouse-test --order=random --db-engine="Replicated('/test/db/test_5', 's1', 'r1')"  --database=test_5  --client-option enable_deflate_qpl_codec=1 enable_zstd_qat_codec=1 join_algorithm='full_sorting_merge' group_by_use_nulls=1 http_make_head_request=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:51,375 Run func tests '/usr/bin/clickhouse-test --order=random  --client-option memory_tracker_fault_probability=0.001 merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability=0.05 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:51,877 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_7  --client-option join_use_nulls=1 join_algorithm='grace_hash' group_by_use_nulls=1 optimize_trivial_approximate_count_query=1 http_make_head_request=0 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:52,378 Run func tests '/usr/bin/clickhouse-test --order=random --db-engine="Replicated('/test/db/test_8', 's1', 'r1')"  --client-option enable_deflate_qpl_codec=1 enable_zstd_qat_codec=1 use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' http_make_head_request=0 ignore_drop_queries_probability=0.5 enable_parallel_replicas=1 max_parallel_replicas=3 cluster_for_parallel_replicas='parallel_replicas' parallel_replicas_for_non_replicated_merge_tree=1 --global_time_limit=1200  '
2025-06-05 15:44:52,879 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_9  --client-option join_algorithm='auto' max_rows_in_join=1000 use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' group_by_use_nulls=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:53,380 Run func tests '/usr/bin/clickhouse-test --order=random  --client-option join_use_nulls=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:53,881 Run func tests '/usr/bin/clickhouse-test --order=random --db-engine="Replicated('/test/db/test_11', 's1', 'r1')"  --database=test_11  --client-option enable_deflate_qpl_codec=1 enable_zstd_qat_codec=1 join_algorithm='parallel_hash' use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' memory_tracker_fault_probability=0.001 merge_tree_read_split_ranges_into_intersecting_and_non_intersecting_injection_probability=0.05 group_by_use_nulls=1 ignore_drop_queries_probability=0.5 enable_parallel_replicas=1 max_parallel_replicas=3 cluster_for_parallel_replicas='parallel_replicas' parallel_replicas_for_non_replicated_merge_tree=1 --global_time_limit=1200  '
2025-06-05 15:44:54,383 Run func tests '/usr/bin/clickhouse-test --order=random  --client-option use_query_cache=1 query_cache_nondeterministic_function_handling='ignore' query_cache_system_table_handling='ignore' implicit_transaction=1 throw_on_unsupported_query_inside_transaction=0 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:54,884 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_13  --client-option join_use_nulls=1 join_algorithm='partial_merge' group_by_use_nulls=1 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:55,385 Run func tests '/usr/bin/clickhouse-test --order=random --db-engine="Replicated('/test/db/test_14', 's1', 'r1')"  --client-option enable_deflate_qpl_codec=1 enable_zstd_qat_codec=1 http_make_head_request=0 ignore_drop_queries_probability=0.5 enable_parallel_replicas=1 max_parallel_replicas=3 cluster_for_parallel_replicas='parallel_replicas' parallel_replicas_for_non_replicated_merge_tree=1 --global_time_limit=1200  '
2025-06-05 15:44:55,886 Run func tests '/usr/bin/clickhouse-test --order=random  --database=test_15  --client-option join_algorithm='full_sorting_merge' group_by_use_nulls=1 http_make_head_request=0 ignore_drop_queries_probability=0.5 --global_time_limit=1200  '
2025-06-05 15:44:56,387 Will wait functests to finish
2025-06-05 15:44:56,388 Finished 8 from 16 processes
2025-06-05 15:45:01,393 Finished 8 from 16 processes
2025-06-05 15:45:06,397 Finished 8 from 16 processes
2025-06-05 15:45:11,401 Finished 8 from 16 processes
2025-06-05 15:45:16,406 Finished 8 from 16 processes
2025-06-05 15:45:21,411 Finished 8 from 16 processes
2025-06-05 15:45:26,413 Finished 8 from 16 processes
2025-06-05 15:45:31,417 Finished 8 from 16 processes
2025-06-05 15:45:36,421 Finished 8 from 16 processes
2025-06-05 15:45:41,425 Finished 8 from 16 processes
2025-06-05 15:45:46,429 Finished 8 from 16 processes
2025-06-05 15:45:51,434 Finished 8 from 16 processes
2025-06-05 15:45:56,437 Finished 8 from 16 processes
2025-06-05 15:46:01,440 Finished 8 from 16 processes
2025-06-05 15:46:06,445 Finished 8 from 16 processes
2025-06-05 15:46:11,449 Finished 8 from 16 processes
2025-06-05 15:46:16,454 Finished 8 from 16 processes
2025-06-05 15:46:21,457 Finished 8 from 16 processes
2025-06-05 15:46:26,461 Finished 8 from 16 processes
2025-06-05 15:46:31,465 Finished 8 from 16 processes
2025-06-05 15:46:36,469 Finished 8 from 16 processes
2025-06-05 15:46:41,473 Finished 8 from 16 processes
2025-06-05 15:46:46,477 Finished 8 from 16 processes
2025-06-05 15:46:51,481 Finished 8 from 16 processes
2025-06-05 15:46:56,485 Finished 8 from 16 processes
2025-06-05 15:47:01,489 Finished 8 from 16 processes
2025-06-05 15:47:06,493 Finished 8 from 16 processes
2025-06-05 15:47:11,497 Finished 8 from 16 processes
2025-06-05 15:47:16,501 Finished 8 from 16 processes
2025-06-05 15:47:21,505 Finished 8 from 16 processes
2025-06-05 15:47:26,509 Finished 8 from 16 processes
2025-06-05 15:47:31,513 Finished 8 from 16 processes
2025-06-05 15:47:36,517 Finished 8 from 16 processes
2025-06-05 15:47:41,521 Finished 8 from 16 processes
2025-06-05 15:47:46,525 Finished 8 from 16 processes
2025-06-05 15:47:51,529 Finished 8 from 16 processes
2025-06-05 15:47:56,533 Finished 8 from 16 processes
2025-06-05 15:48:01,537 Finished 8 from 16 processes
2025-06-05 15:48:06,541 Finished 8 from 16 processes
2025-06-05 15:48:11,545 Finished 8 from 16 processes
2025-06-05 15:48:16,549 Finished 8 from 16 processes
2025-06-05 15:48:21,553 Finished 8 from 16 processes
2025-06-05 15:48:26,557 Finished 8 from 16 processes
2025-06-05 15:48:31,561 Finished 8 from 16 processes
2025-06-05 15:48:36,565 Finished 8 from 16 processes
2025-06-05 15:48:41,569 Finished 8 from 16 processes
2025-06-05 15:48:46,573 Finished 8 from 16 processes
2025-06-05 15:48:51,577 Finished 8 from 16 processes
2025-06-05 15:48:56,581 Finished 8 from 16 processes
2025-06-05 15:49:01,585 Finished 8 from 16 processes
2025-06-05 15:49:06,589 Finished 8 from 16 processes
2025-06-05 15:49:11,593 Finished 8 from 16 processes
2025-06-05 15:49:16,597 Finished 8 from 16 processes
2025-06-05 15:49:21,601 Finished 8 from 16 processes
2025-06-05 15:49:26,606 Finished 8 from 16 processes
2025-06-05 15:49:31,609 Finished 8 from 16 processes
2025-06-05 15:49:36,613 Finished 8 from 16 processes
2025-06-05 15:49:41,617 Finished 8 from 16 processes
2025-06-05 15:49:46,621 Finished 8 from 16 processes
2025-06-05 15:49:51,625 Finished 8 from 16 processes
2025-06-05 15:49:56,629 Finished 8 from 16 processes
2025-06-05 15:50:01,633 Finished 8 from 16 processes
2025-06-05 15:50:06,637 Finished 8 from 16 processes
2025-06-05 15:50:11,641 Finished 8 from 16 processes
2025-06-05 15:50:16,645 Finished 8 from 16 processes
2025-06-05 15:50:21,649 Finished 8 from 16 processes
2025-06-05 15:50:26,653 Finished 8 from 16 processes
2025-06-05 15:50:31,657 Finished 8 from 16 processes
2025-06-05 15:50:36,661 Finished 8 from 16 processes
2025-06-05 15:50:41,665 Finished 8 from 16 processes
2025-06-05 15:50:46,669 Finished 8 from 16 processes
2025-06-05 15:50:51,673 Finished 8 from 16 processes
2025-06-05 15:50:56,677 Finished 8 from 16 processes
2025-06-05 15:51:01,681 Finished 8 from 16 processes
2025-06-05 15:51:06,685 Finished 8 from 16 processes
2025-06-05 15:51:11,689 Finished 8 from 16 processes
2025-06-05 15:51:16,693 Finished 8 from 16 processes
2025-06-05 15:51:21,697 Finished 8 from 16 processes
2025-06-05 15:51:26,701 Finished 8 from 16 processes
2025-06-05 15:51:31,705 Finished 8 from 16 processes
2025-06-05 15:51:36,709 Finished 8 from 16 processes
2025-06-05 15:51:41,713 Finished 8 from 16 processes
2025-06-05 15:51:46,717 Finished 8 from 16 processes
2025-06-05 15:51:51,721 Finished 8 from 16 processes
2025-06-05 15:51:56,725 Finished 8 from 16 processes
2025-06-05 15:52:01,729 Finished 8 from 16 processes
2025-06-05 15:52:06,733 Finished 8 from 16 processes
2025-06-05 15:52:11,737 Finished 8 from 16 processes
2025-06-05 15:52:16,741 Finished 8 from 16 processes
2025-06-05 15:52:21,745 Finished 8 from 16 processes
2025-06-05 15:52:26,749 Finished 8 from 16 processes
2025-06-05 15:52:31,753 Finished 8 from 16 processes
2025-06-05 15:52:36,757 Finished 8 from 16 processes
2025-06-05 15:52:41,761 Finished 8 from 16 processes
2025-06-05 15:52:46,765 Finished 9 from 16 processes
2025-06-05 15:52:51,769 Finished 9 from 16 processes
2025-06-05 15:52:56,773 Finished 9 from 16 processes
2025-06-05 15:53:01,777 Finished 9 from 16 processes
2025-06-05 15:53:06,781 Finished 9 from 16 processes
2025-06-05 15:53:11,785 Finished 9 from 16 processes
2025-06-05 15:53:16,789 Finished 9 from 16 processes
2025-06-05 15:53:21,793 Finished 9 from 16 processes
2025-06-05 15:53:26,797 Finished 9 from 16 processes
2025-06-05 15:53:31,801 Finished 9 from 16 processes
2025-06-05 15:53:36,805 Finished 9 from 16 processes
2025-06-05 15:53:41,809 Finished 9 from 16 processes
2025-06-05 15:53:46,813 Finished 9 from 16 processes
2025-06-05 15:53:51,817 Finished 9 from 16 processes
2025-06-05 15:53:56,821 Finished 9 from 16 processes
2025-06-05 15:54:01,825 Finished 9 from 16 processes
2025-06-05 15:54:06,829 Finished 9 from 16 processes
2025-06-05 15:54:11,833 Finished 9 from 16 processes
2025-06-05 15:54:16,837 Finished 9 from 16 processes
2025-06-05 15:54:21,841 Finished 9 from 16 processes
2025-06-05 15:54:26,845 Finished 9 from 16 processes
2025-06-05 15:54:31,849 Finished 9 from 16 processes
2025-06-05 15:54:36,853 Finished 9 from 16 processes
2025-06-05 15:54:41,857 Finished 9 from 16 processes
2025-06-05 15:54:46,861 Finished 9 from 16 processes
2025-06-05 15:54:51,865 Finished 9 from 16 processes
2025-06-05 15:54:56,869 Finished 9 from 16 processes
2025-06-05 15:55:01,873 Finished 9 from 16 processes
2025-06-05 15:55:06,877 Finished 9 from 16 processes
2025-06-05 15:55:11,881 Finished 9 from 16 processes
2025-06-05 15:55:16,885 Finished 9 from 16 processes
2025-06-05 15:55:21,889 Finished 9 from 16 processes
2025-06-05 15:55:26,893 Finished 9 from 16 processes
2025-06-05 15:55:31,897 Finished 9 from 16 processes
2025-06-05 15:55:36,902 Finished 9 from 16 processes
2025-06-05 15:55:41,905 Finished 9 from 16 processes
2025-06-05 15:55:46,909 Finished 9 from 16 processes
2025-06-05 15:55:51,913 Finished 9 from 16 processes
2025-06-05 15:55:56,917 Finished 9 from 16 processes
2025-06-05 15:56:01,922 Finished 9 from 16 processes
2025-06-05 15:56:06,925 Finished 9 from 16 processes
2025-06-05 15:56:11,929 Finished 9 from 16 processes
2025-06-05 15:56:16,933 Finished 9 from 16 processes
2025-06-05 15:56:21,935 Finished 10 from 16 processes
2025-06-05 15:56:26,937 Finished 10 from 16 processes
2025-06-05 15:56:31,941 Finished 10 from 16 processes
2025-06-05 15:56:36,945 Finished 10 from 16 processes
2025-06-05 15:56:41,945 Finished 10 from 16 processes
2025-06-05 15:56:46,950 Finished 10 from 16 processes
2025-06-05 15:56:51,953 Finished 10 from 16 processes
2025-06-05 15:56:56,957 Finished 10 from 16 processes
2025-06-05 15:57:01,959 Finished 10 from 16 processes
2025-06-05 15:57:06,961 Finished 10 from 16 processes
2025-06-05 15:57:11,965 Finished 10 from 16 processes
2025-06-05 15:57:16,969 Finished 10 from 16 processes
2025-06-05 15:57:21,973 Finished 10 from 16 processes
2025-06-05 15:57:26,977 Finished 10 from 16 processes
2025-06-05 15:57:31,982 Finished 10 from 16 processes
2025-06-05 15:57:36,985 Finished 10 from 16 processes
2025-06-05 15:57:41,989 Finished 10 from 16 processes
2025-06-05 15:57:46,993 Finished 10 from 16 processes
2025-06-05 15:57:51,997 Finished 10 from 16 processes
2025-06-05 15:57:57,001 Finished 10 from 16 processes
2025-06-05 15:58:02,005 Finished 10 from 16 processes
2025-06-05 15:58:07,009 Finished 10 from 16 processes
2025-06-05 15:58:12,013 Finished 10 from 16 processes
2025-06-05 15:58:17,017 Finished 10 from 16 processes
2025-06-05 15:58:22,021 Finished 10 from 16 processes
2025-06-05 15:58:27,025 Finished 10 from 16 processes
2025-06-05 15:58:32,029 Finished 10 from 16 processes
2025-06-05 15:58:37,033 Finished 10 from 16 processes
2025-06-05 15:58:42,037 Finished 10 from 16 processes
2025-06-05 15:58:47,041 Finished 10 from 16 processes
2025-06-05 15:58:52,045 Finished 10 from 16 processes
2025-06-05 15:58:57,051 Finished 10 from 16 processes
2025-06-05 15:59:02,055 Finished 10 from 16 processes
2025-06-05 15:59:07,056 Finished 10 from 16 processes
2025-06-05 15:59:12,061 Finished 10 from 16 processes
2025-06-05 15:59:17,065 Finished 10 from 16 processes
2025-06-05 15:59:22,069 Finished 11 from 16 processes
2025-06-05 15:59:27,073 Finished 11 from 16 processes
2025-06-05 15:59:32,078 Finished 11 from 16 processes
2025-06-05 15:59:37,081 Finished 11 from 16 processes
2025-06-05 15:59:42,085 Finished 11 from 16 processes
2025-06-05 15:59:47,088 Finished 11 from 16 processes
2025-06-05 15:59:52,093 Finished 11 from 16 processes
2025-06-05 15:59:57,097 Finished 11 from 16 processes
2025-06-05 16:00:02,104 Finished 11 from 16 processes
2025-06-05 16:00:07,109 Finished 11 from 16 processes
2025-06-05 16:00:12,114 Finished 11 from 16 processes
2025-06-05 16:00:17,117 Finished 11 from 16 processes
2025-06-05 16:00:22,121 Finished 11 from 16 processes
2025-06-05 16:00:27,125 Finished 11 from 16 processes
2025-06-05 16:00:32,130 Finished 11 from 16 processes
2025-06-05 16:00:37,133 Finished 11 from 16 processes
2025-06-05 16:00:42,137 Finished 11 from 16 processes
2025-06-05 16:00:47,141 Finished 11 from 16 processes
2025-06-05 16:00:52,145 Finished 11 from 16 processes
2025-06-05 16:00:57,149 Finished 11 from 16 processes
2025-06-05 16:01:02,152 Finished 11 from 16 processes
2025-06-05 16:01:07,157 Finished 11 from 16 processes
2025-06-05 16:01:12,161 Finished 11 from 16 processes
2025-06-05 16:01:17,165 Finished 11 from 16 processes
2025-06-05 16:01:22,169 Finished 11 from 16 processes
2025-06-05 16:01:27,173 Finished 11 from 16 processes
2025-06-05 16:01:32,177 Finished 11 from 16 processes
2025-06-05 16:01:37,181 Finished 11 from 16 processes
2025-06-05 16:01:42,183 Finished 11 from 16 processes
2025-06-05 16:01:47,185 Finished 11 from 16 processes
2025-06-05 16:01:52,189 Finished 11 from 16 processes
2025-06-05 16:01:57,193 Finished 11 from 16 processes
2025-06-05 16:02:02,195 Finished 11 from 16 processes
2025-06-05 16:02:07,197 Finished 11 from 16 processes
2025-06-05 16:02:12,201 Finished 11 from 16 processes
2025-06-05 16:02:17,206 Finished 11 from 16 processes
2025-06-05 16:02:22,209 Finished 11 from 16 processes
2025-06-05 16:02:27,211 Finished 11 from 16 processes
2025-06-05 16:02:32,213 Finished 11 from 16 processes
2025-06-05 16:02:37,217 Finished 11 from 16 processes
2025-06-05 16:02:42,221 Finished 11 from 16 processes
2025-06-05 16:02:47,225 Finished 11 from 16 processes
2025-06-05 16:02:52,229 Finished 11 from 16 processes
2025-06-05 16:02:57,233 Finished 11 from 16 processes
2025-06-05 16:03:02,237 Finished 11 from 16 processes
2025-06-05 16:03:07,241 Finished 11 from 16 processes
2025-06-05 16:03:12,245 Finished 11 from 16 processes
2025-06-05 16:03:17,249 Finished 11 from 16 processes
2025-06-05 16:03:22,253 Finished 11 from 16 processes
2025-06-05 16:03:27,257 Finished 11 from 16 processes
2025-06-05 16:03:32,262 Finished 11 from 16 processes
2025-06-05 16:03:37,263 Finished 11 from 16 processes
2025-06-05 16:03:42,265 Finished 11 from 16 processes
2025-06-05 16:03:47,270 Finished 11 from 16 processes
2025-06-05 16:03:52,273 Finished 11 from 16 processes
2025-06-05 16:03:57,278 Finished 11 from 16 processes
2025-06-05 16:04:02,281 Finished 11 from 16 processes
2025-06-05 16:04:07,286 Finished 11 from 16 processes
2025-06-05 16:04:12,289 Finished 11 from 16 processes
2025-06-05 16:04:17,293 Finished 11 from 16 processes
2025-06-05 16:04:22,297 Finished 11 from 16 processes
2025-06-05 16:04:27,303 Finished 11 from 16 processes
2025-06-05 16:04:32,308 Finished 11 from 16 processes
2025-06-05 16:04:37,311 Finished 11 from 16 processes
2025-06-05 16:04:42,313 Finished 11 from 16 processes
2025-06-05 16:04:47,317 Finished 11 from 16 processes
2025-06-05 16:04:52,319 Finished 12 from 16 processes
2025-06-05 16:04:57,322 Finished 13 from 16 processes
2025-06-05 16:05:02,325 Finished 13 from 16 processes
2025-06-05 16:05:07,329 Finished 13 from 16 processes
2025-06-05 16:05:12,333 Finished 13 from 16 processes
2025-06-05 16:05:17,337 Finished 13 from 16 processes
2025-06-05 16:05:22,341 Finished 13 from 16 processes
2025-06-05 16:05:27,341 Finished 14 from 16 processes
2025-06-05 16:05:32,345 Finished 14 from 16 processes
2025-06-05 16:05:37,349 Finished 14 from 16 processes
2025-06-05 16:05:42,354 Finished 14 from 16 processes
2025-06-05 16:05:47,358 Finished 14 from 16 processes
2025-06-05 16:05:52,361 Finished 14 from 16 processes
2025-06-05 16:05:57,362 Finished 14 from 16 processes
2025-06-05 16:06:02,365 Finished 14 from 16 processes
2025-06-05 16:06:07,366 Finished 14 from 16 processes
2025-06-05 16:06:12,367 Finished 14 from 16 processes
2025-06-05 16:06:17,372 Finished 14 from 16 processes
2025-06-05 16:06:22,377 Finished 14 from 16 processes
2025-06-05 16:06:27,381 Finished 14 from 16 processes
2025-06-05 16:06:32,385 Finished 14 from 16 processes
2025-06-05 16:06:37,389 Finished 14 from 16 processes
2025-06-05 16:06:42,394 Finished 14 from 16 processes
2025-06-05 16:06:47,399 Finished 14 from 16 processes
2025-06-05 16:06:52,401 Finished 14 from 16 processes
2025-06-05 16:06:57,405 Finished 14 from 16 processes
2025-06-05 16:07:02,409 Finished 14 from 16 processes
2025-06-05 16:07:07,413 Finished 14 from 16 processes
2025-06-05 16:07:12,417 Finished 14 from 16 processes
2025-06-05 16:07:17,421 Finished 14 from 16 processes
2025-06-05 16:07:22,425 Finished 14 from 16 processes
2025-06-05 16:07:27,429 Finished 14 from 16 processes
2025-06-05 16:07:32,430 Finished 14 from 16 processes
2025-06-05 16:07:37,433 Finished 14 from 16 processes
2025-06-05 16:07:42,438 Finished 14 from 16 processes
2025-06-05 16:07:47,443 Finished 14 from 16 processes
2025-06-05 16:07:52,449 Finished 14 from 16 processes
2025-06-05 16:07:57,453 Finished 14 from 16 processes
2025-06-05 16:08:02,456 Finished 14 from 16 processes
2025-06-05 16:08:07,456 Finished 14 from 16 processes
2025-06-05 16:08:12,461 Finished 14 from 16 processes
2025-06-05 16:08:17,465 Finished 14 from 16 processes
2025-06-05 16:08:22,469 Finished 14 from 16 processes
2025-06-05 16:08:27,473 Finished 14 from 16 processes
2025-06-05 16:08:32,477 Finished 14 from 16 processes
2025-06-05 16:08:37,481 Finished 14 from 16 processes
2025-06-05 16:08:42,486 Finished 14 from 16 processes
2025-06-05 16:08:47,489 Finished 14 from 16 processes
2025-06-05 16:08:52,493 Finished 14 from 16 processes
2025-06-05 16:08:57,497 Finished 14 from 16 processes
2025-06-05 16:09:02,502 Finished 14 from 16 processes
2025-06-05 16:09:07,505 Finished 14 from 16 processes
2025-06-05 16:09:12,509 Finished 14 from 16 processes
2025-06-05 16:09:17,513 Finished 14 from 16 processes
2025-06-05 16:09:22,517 Finished 14 from 16 processes
2025-06-05 16:09:27,521 Finished 14 from 16 processes
2025-06-05 16:09:32,526 Finished 14 from 16 processes
2025-06-05 16:09:37,528 Finished 14 from 16 processes
2025-06-05 16:09:42,533 Finished 14 from 16 processes
2025-06-05 16:09:47,537 Finished 14 from 16 processes
2025-06-05 16:09:52,541 Finished 14 from 16 processes
2025-06-05 16:09:57,545 Finished 14 from 16 processes
2025-06-05 16:10:02,549 Finished 14 from 16 processes
2025-06-05 16:10:07,553 Finished 14 from 16 processes
2025-06-05 16:10:12,555 Finished 14 from 16 processes
2025-06-05 16:10:17,559 Finished 14 from 16 processes
2025-06-05 16:10:22,564 Finished 14 from 16 processes
2025-06-05 16:10:27,569 Finished 14 from 16 processes
2025-06-05 16:10:32,574 Finished 15 from 16 processes
2025-06-05 16:10:37,576 Finished 15 from 16 processes
2025-06-05 16:10:42,579 Finished 15 from 16 processes
2025-06-05 16:10:47,581 Finished 15 from 16 processes
2025-06-05 16:10:52,585 Finished 15 from 16 processes
2025-06-05 16:10:57,590 Finished 15 from 16 processes
2025-06-05 16:11:02,593 Finished 15 from 16 processes
2025-06-05 16:11:07,597 Finished 15 from 16 processes
2025-06-05 16:11:12,601 Finished 15 from 16 processes
2025-06-05 16:11:17,605 Finished 15 from 16 processes
2025-06-05 16:11:22,609 Finished 15 from 16 processes
2025-06-05 16:11:27,614 Finished 15 from 16 processes
2025-06-05 16:11:32,615 Finished 15 from 16 processes
2025-06-05 16:11:37,617 Finished 15 from 16 processes
2025-06-05 16:11:42,622 Finished 15 from 16 processes
2025-06-05 16:11:47,625 Finished 15 from 16 processes
2025-06-05 16:11:52,629 Finished 15 from 16 processes
2025-06-05 16:11:57,633 Finished 15 from 16 processes
2025-06-05 16:12:02,638 Finished 15 from 16 processes
2025-06-05 16:12:07,641 Finished 15 from 16 processes
2025-06-05 16:12:12,645 Finished 15 from 16 processes
2025-06-05 16:12:17,650 Finished 15 from 16 processes
2025-06-05 16:12:22,655 Finished 15 from 16 processes
2025-06-05 16:12:27,661 Finished 15 from 16 processes
2025-06-05 16:12:32,665 Finished 15 from 16 processes
2025-06-05 16:12:37,669 Finished 15 from 16 processes
2025-06-05 16:12:42,671 Finished 15 from 16 processes
2025-06-05 16:12:47,673 Finished 15 from 16 processes
2025-06-05 16:12:52,677 Finished 15 from 16 processes
2025-06-05 16:12:57,677 Finished 15 from 16 processes
2025-06-05 16:13:02,681 Finished 15 from 16 processes
2025-06-05 16:13:07,682 Finished 15 from 16 processes
2025-06-05 16:13:12,685 Finished 15 from 16 processes
2025-06-05 16:13:17,690 Finished 15 from 16 processes
2025-06-05 16:13:22,691 Finished 15 from 16 processes
2025-06-05 16:13:27,696 Finished 15 from 16 processes
2025-06-05 16:13:32,700 Finished 15 from 16 processes
2025-06-05 16:13:37,705 Finished 15 from 16 processes
2025-06-05 16:13:42,709 Finished 15 from 16 processes
2025-06-05 16:13:47,713 Finished 15 from 16 processes
2025-06-05 16:13:52,715 Finished 15 from 16 processes
2025-06-05 16:13:57,717 Finished 15 from 16 processes
2025-06-05 16:14:02,721 All processes finished
2025-06-05 16:14:02,721 Compressing stress logs
2025-06-05 16:14:02,753 Logs compressed
2025-06-05 16:14:02,753 Will terminate gdb (if any)
2025-06-05 16:14:02,753 Running command: kill -TERM $(pidof gdb)
2025-06-05 16:14:02,757 Running command: timeout 50s tail --pid=$(pidof gdb) -f /dev/null || kill -9 $(pidof gdb) ||:
2025-06-05 16:14:03,774 Running command: kill -CONT $(cat /var/run/clickhouse-server/clickhouse-server.pid) && clickhouse client -q 'SELECT 1 FORMAT Null'
2025-06-05 16:14:03,938 Running command: clickhouse client -q "SYSTEM STOP THREAD FUZZER" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,102 Running command: clickhouse client -q "SYSTEM START MERGES" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,167 Running command: clickhouse client -q "SYSTEM START DISTRIBUTED SENDS" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,231 Running command: clickhouse client -q "SYSTEM START TTL MERGES" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,345 Running command: clickhouse client -q "SYSTEM START MOVES" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,460 Running command: clickhouse client -q "SYSTEM START FETCHES" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,574 Running command: clickhouse client -q "SYSTEM START REPLICATED SENDS" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,689 Running command: clickhouse client -q "SYSTEM START REPLICATION QUEUES" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,804 Running command: clickhouse client -q "SYSTEM DROP MARK CACHE" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:04,918 Running command: clickhouse client -q "KILL QUERY WHERE upper(query) LIKE 'WATCH %'" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:05,033 Running command: clickhouse client -q "KILL QUERY WHERE query LIKE 'insert into tableB select %'" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:05,147 Running command: clickhouse client -q "KILL QUERY WHERE query LIKE 'SELECT URL, uniq(SearchPhrase) AS u FROM test.hits GROUP BY URL ORDER BY u %'" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
2025-06-05 16:14:05,262 Running command: clickhouse client -q "KILL QUERY WHERE query LIKE 'SELECT (SELECT number FROM system.numbers WHERE number = 1000000000000)%'" --max_untracked_memory=1Gi --memory_profiler_step=1Gi --max_memory_usage_for_user=0 --max_memory_usage_in_client=1000000000
Received exception from server (version 24.8.14):
Code: 159. DB::Exception: Received from localhost:9000. DB::Exception: Timeout exceeded: elapsed 60.014080787 seconds, maximum: 60. (TIMEOUT_EXCEEDED)
(query: SELECT sleepEachRow((
        SELECT maxOrDefault(300 - elapsed) + 1
        FROM system.processes
        WHERE query NOT LIKE '%FROM system.processes%' AND elapsed < 300
    ) / 300)
    FROM numbers(300)
    FORMAT Null
    SETTINGS function_sleep_max_microseconds_per_block = 0
    )
2025-06-05 16:15:05,793 Checking if some queries hung
Using queries from '/usr/share/clickhouse-test/queries' directory
Connecting to ClickHouse server... OK
Connected to server 24.8.14.10029.altinitytest @ cb5b428c62ab91de3d5875384840273f2cb86a48 HEAD
Running 1 stateless tests (MainProcess).
00001_select_1:                                                         [ OK ]
1 tests passed. 0 tests skipped. 0.23 s elapsed (MainProcess).
Won't run stateful tests because test data wasn't loaded.
Checking the hung queries:  done
No queries hung.
All tests have finished.
Top patterns of log messages:
count   count_%   size         size_%   uniq_loggers   uniq_threads   levels            background_%   message_format_string                                                                                                       
  1.  13410     0.052   2.01 MiB       0.04           6708             83   ['Trace']                    1   {} Creating query context from {} context, user_id: {}, parent context user: {}                                              
  2.  12815      0.05   1.30 MiB      0.026              1             78   ['Trace']                 0.19   Checking existence of path: {}                                                                                               
  3.  12238     0.048   345.44 KiB    0.007              1             83   ['Debug']                0.134   Processed in {} sec.                                                                                                         
  4.  11894     0.046   2.30 MiB      0.045              1             84   ['Debug']                    0   (from {}{}{}){}{} {} (stage: {})                                                                                             
  5.   8253     0.032   226.95 KiB    0.004              1            139   ['Trace']                0.041   Query to stage {}{}                                                                                                          
  6.   8151     0.032   418.69 KiB    0.008              1            139   ['Trace']                0.041   Query from stage {} to stage {}{}                                                                                            
  7.   6737     0.026   309.60 KiB    0.006           6737             97   ['Debug']                0.998   Authenticating user '{}' from {}                                                                                             
  8.   6734     0.026   756.26 KiB    0.015           6734             97   ['Debug']                0.998   {} Authenticated with global context as user {}                                                                              
  9.   6718     0.026   590.45 KiB    0.011           6718             97   ['Debug']                0.998   {} Logout, user_id: {}                                                                                                       
 10.   6717     0.026   491.97 KiB    0.009           6717             83   ['Debug']                    1   Creating session context with user_id: {}                                                                                    
 11.   6576     0.026   292.70 KiB    0.006              1              3   ['Trace']                    1   Processing requests batch, size: {}, bytes: {}                                                                               
 12.   6083     0.024   15.72 MiB      0.31              9            514   ['Error']                0.999   Table is in readonly mode (replica path: {})                                                                                 
 13.   5769     0.022   405.72 KiB    0.008              1            600   ['Trace']                0.613   Reserved {} on local disk {}, having unreserved {}.                                                                          
 14.   5643     0.022   187.49 KiB    0.004              2             83   ['Trace']                    1   TCP Request. Address: {}                                                                                                     
 15.   5642     0.022   518.76 KiB     0.01              1             83   ['Debug']                    1   Connected {} version {}.{}.{}, revision: {}{}{}.                                                                             
 16.   5635     0.022   390.79 KiB    0.008            248            569   ['Trace']                 0.61   Trying to reserve {} using storage policy from min volume index {}                                                           
 17.   5632     0.022   268.28 KiB    0.005              1            203   ['Trace']                0.491   filled checksums {}                                                                                                          
 18.   5611     0.022   147.95 KiB    0.003              1             83   ['Debug']                    1   Done processing connection.                                                                                                  
 19.   5606     0.022   665.51 KiB    0.013            246            200   ['Trace']                0.494   Renaming temporary part {} to {} with tid {}.                                                                                
 20.   5176      0.02   596.24 KiB    0.011              1             26   ['Debug']                    0   Reading {} marks from part {}, total {} rows starting from the beginning of the part, column {}                              
 21.   5174      0.02   409.50 KiB    0.008              1             63   ['Debug']                    0   Read {} rows, {} in {} sec., {} rows/sec., {}/sec.                                                                           
 22.   4074     0.016   382.99 KiB    0.007              1             47   ['Debug']                    0   Reading {} marks from part {}, total {} rows starting from the beginning of the part                                         
 23.   3382     0.013   160.00 KiB    0.003              1            100   ['Debug']                0.235   Peak memory usage{}: {}.                                                                                                     
 24.   3355     0.013   117.95 KiB    0.002              1             45   ['Trace']                    1   Keeper request. Address: {}                                                                                                  
 25.   2766     0.011   160.01 KiB    0.003             17             41   ['Trace']                    1   Flushing system log, {} entries to flush up to offset {}                                                                     
 26.   2765     0.011   98.92 KiB     0.002             17             41   ['Trace']                    1   Flushed system log up to offset {}                                                                                           
 27.   2530      0.01   150.71 KiB    0.003            391            120   ['Debug']                0.137   There are {} detached tables. Start searching non used tables.                                                               
 28.   2530      0.01   106.24 KiB    0.002            391            120   ['Debug']                0.137   Found {} non used tables in detached tables.                                                                                 
 29.   2270     0.009   282.63 KiB    0.005              1             48   ['Trace']                    0   No query result found for query {}                                                                                           
 30.   2169     0.008   67.78 KiB     0.001              1             13   ['Debug']                    1   Receive four letter command {}                                                                                               
 31.   1902     0.007   237.67 KiB    0.005              1              6   ['Trace']                    1   MemoryTracking: was {}, peak {}, free memory in arenas {}, will set to {} (RSS), difference: {}                              
 32.   1788     0.007   137.94 KiB    0.003              1              1   ['Debug']                    1   Restarting waiting for CQEs due to: {}                                                                                       
 33.   1664     0.006   4.42 MiB      0.087              2             39   ['Error']                0.986   Setting {} should not be changed                                                                                             
 34.   1584     0.006   162.03 KiB    0.003              1              7   ['Trace']                  0.5   Adding file: {}, size: {}                                                                                                    
 35.   1543     0.006   164.18 KiB    0.003              1             44   ['Trace']                    0   Stored query result of query {}                                                                                              
 36.   1471     0.006   131.59 KiB    0.003              1            130   ['Trace']                    0   Aggregated. {} to {} rows (from {}) in {} sec. ({:.3f} rows/sec., {}/sec.)                                                   
 37.   1157     0.004   25.99 KiB         0              1            128   ['Trace']                    0   Merging aggregated data                                                                                                      
 38.   1141     0.004   88.03 KiB     0.002              1             60   ['Trace']                    0   Query span trace_id for opentelemetry log: {}                                                                                
 39.   1078     0.004   186.19 KiB    0.004              2             49   ['Trace']                    1   HTTP Request for {}. Method: {}, Address: {}, User-Agent: {}{}, Content Type: {}, Transfer Encoding: {}, X-Forwarded-For: {} 
 40.   1076     0.004   525.75 KiB     0.01              2             49   ['Trace']                    1   Request URI: {}                                                                                                              
 41.   1074     0.004   31.80 KiB     0.001              1            129   ['Trace']                    0   Aggregation method: {}                                                                                                       
 42.   1011     0.004   22.61 KiB         0              1             38   ['Information']              1   Received session ID {}                                                                                                       
 43.   1011     0.004   41.37 KiB     0.001              1              3   ['Debug']                    1   Session ID response {} with timeout {}                                                                                       
 44.   1011     0.004   39.49 KiB     0.001              1             38   ['Information']              1   Requesting session ID for the new client                                                                                     
 45.   1007     0.004   58.92 KiB     0.001              1             34   ['Debug']                    1   Received close event with xid {} for session id #{}                                                                          
 46.   1005     0.004   31.32 KiB     0.001              1             33   ['Debug']                    1   Session #{} successfully closed                                                                                              
 47.    937     0.004   36.63 KiB     0.001              1            175   ['Debug']                 0.58   Spawn loader worker #{} in {}                                                                                                
 48.    937     0.004   26.56 KiB     0.001              1            181   ['Debug']                    1   Stop worker in {}                                                                                                            
 49.    936     0.004   64.83 KiB     0.001              1            159   ['Debug']                    1   Finish load job '{}' with status {}                                                                                          
 50.    936     0.004   71.25 KiB     0.001              1             51   ['Debug']                0.089   Schedule load job '{}' into {}                                                                                               
 51.    936     0.004   68.51 KiB     0.001              1            159   ['Debug']                    1   Execute load job '{}' in {}                                                                                                  
 52.    925     0.004   85.83 KiB     0.002              1             52   ['Debug']                0.061   Prioritize load job '{}': {} -> {}                                                                                           
 53.    908     0.004   71.24 KiB     0.001            156             94   ['Trace']                0.043   Reading {} ranges in{}order from part {}, approx. {} rows starting from {}                                                   
 54.    884     0.003   18.13 KiB         0              2             49   ['Debug']                0.003   Done processing query                                                                                                        
 55.    873     0.003   101.06 KiB    0.002            169             89   ['Debug']                  0.9   Removing {} parts from filesystem (serially): Parts: [{}]                                                                    
 56.    811     0.003   26.91 KiB     0.001              1            176   ['Debug']                0.514   Change current priority: {} -> {}                                                                                            
 57.    796     0.003   7.00 KiB          0              2             51   ['Trace']                 0.01   No tables                                                                                                                    
 58.    759     0.003   8.15 KiB          0              1            118   ['Trace']                    0   Aggregating                                                                                                                  
 59.    749     0.003   76.38 KiB     0.001             47             21   ['Trace']                0.879   Found {} old parts to remove. Parts: [{}]                                                                                    
 60.    748     0.003   77.07 KiB     0.001             47             21   ['Debug']                0.878   Removing {} parts from memory: Parts: [{}]                                                                                   
 61.    731     0.003   39.09 KiB     0.001             55            411   ['Debug']                0.911   Selected {} parts from {} to {}                                                                                              
 62.    730     0.003   24.85 KiB         0              1             49   ['Debug']                    0   Selected MergeAlgorithm: {}                                                                                                  
 63.    730     0.003   60.73 KiB     0.001              1             49   ['Debug']                    0   Merging {} parts: from {} to {} into {} with storage {}                                                                      
 64.    722     0.003   33.00 KiB     0.001              4             20   ['Debug']                    0   Add info for detached table {} to snapshot.                                                                                  
 65.    692     0.003   20.32 KiB         0            182            101   ['Debug']                0.056   Key condition: {}                                                                                                            
 66.    690     0.003   30.32 KiB     0.001            181            101   ['Trace']                0.057   Filtering marks by primary and secondary keys                                                                                
 67.    660     0.003   43.28 KiB     0.001             54             47   ['Trace']                    0   Merged {} parts: [{}, {}] -> {}                                                                                              
 68.    660     0.003   86.20 KiB     0.002              1             48   ['Debug']                    0   Merge sorted {} rows, containing {} columns ({} merged, {} gathered) in {} sec., {} rows/sec., {}/sec.                       
 69.    647     0.003   73.92 KiB     0.001            174             99   ['Debug']                 0.06   Selected {}/{} parts by partition key, {} parts by primary key, {}/{} marks by primary key, {} marks to read from {} ranges  
 70.    622     0.002   130.53 KiB    0.003              1            111   ['Trace']                 0.28   {}Keys: {}, datatype: {}, kind: {}, strictness: {}, right header: {}                                                         
 71.    607     0.002   19.03 KiB         0             20             21   ['Debug']                0.012   Requested flush up to offset {}                                                                                              
 72.    570     0.002   22.82 KiB         0             14            111   ['Trace']                0.011   Sending external_roles with query: [{}] ({})                                                                                 
 73.    565     0.002   29.24 KiB     0.001            150             98   ['Trace']                0.069   Spreading mark ranges among streams (default reading)                                                                        
 74.    542     0.002   43.29 KiB     0.001              1            126   ['Trace']                    0   Statistics updated for key={}: new sum_of_sizes={}, median_size={}                                                           
 75.    533     0.002   2.23 MiB      0.044             10             85   ['Error']                0.154   Cannot schedule a task: {} (threads={}, jobs={})                                                                             
 76.    504     0.002   58.08 KiB     0.001              1             47   ['Debug']                    0   Done waiting for the table {} to be dropped. The outcome: {}                                                                 
 77.    504     0.002   37.41 KiB     0.001              1             47   ['Debug']                    0   Waiting for table {} to be finally dropped                                                                                   
 78.    449     0.002   22.92 KiB         0             15             97   ['Trace']                0.004   Connecting. Database: {}. User: {}{}{}                                                                                       
 79.    448     0.002   36.41 KiB     0.001              1            112   ['Trace']                    0   An entry for key={} found in cache: sum_of_sizes={}, median_size={}                                                          
 80.    438     0.002   20.10 KiB         0             14             96   ['Trace']                0.005   Connected to {} server version {}.{}.{}.                                                                                     
 81.    431     0.002   69.74 KiB     0.001             14             89   ['Debug']                    0   Sent data for {} scalars, total {} rows in {} sec., {} rows/sec., {} ({}/sec.), compressed {} times to {} ({}/sec.)          
 82.    417     0.002   30.13 KiB     0.001              1            281   ['Information']              1   Have {} tables in drop queue ({} of them are in use), will try drop {} tables                                                
 83.    417     0.002   24.20 KiB         0              2             21   ['Trace']                0.918   Loading config file '{}'.                                                                                                    
 84.    404     0.002   33.19 KiB     0.001            394             51   ['Information']          0.025   Metadata processed, database {} has {} tables and {} dictionaries in total.                                                  
 85.    403     0.002   30.70 KiB     0.001              7             49   ['Trace']                0.948   Settings: readonly = {}, allow_ddl = {}, allow_introspection_functions = {}                                                  
 86.    403     0.002   21.31 KiB         0              7             49   ['Trace']                0.948   List of all grants: {}                                                                                                       
 87.    403     0.002   78.66 KiB     0.002              1            105   ['Information']              1   Removing metadata {} of dropped table {}                                                                                     
 88.    403     0.002   38.12 KiB     0.001              7             49   ['Trace']                0.948   List of all grants including implicit: {}                                                                                    
 89.    403     0.002   16.14 KiB         0             21             98   ['Debug']                0.511   Will use old analyzer to prepare mutation                                                                                    
 90.    401     0.002   28.15 KiB     0.001              1             52   ['Debug']                0.027   Wait load job '{}' in {}                                                                                                     
 91.    400     0.002   23.70 KiB         0              1             51   ['Information']          0.015   Parsed metadata of {} tables in {} databases in {} sec                                                                       
 92.    399     0.002   1.11 MiB      0.022              2             33   ['Error']                    0   Table {}.{} already exists                                                                                                   
 93.    398     0.002   7.00 KiB          0            360             92   ['Debug']                0.126   Loading data parts                                                                                                           
 94.    390     0.002   8.59 KiB          0             57            276   ['Trace']                    1   Execution took {} ms.                                                                                                        
 95.    376     0.001   28.04 KiB     0.001              1             30   ['Trace']                    0   Query result found for query {}                                                                                              
 96.    361     0.001   6.98 KiB          0              4             20   ['Debug']                    0   Detach table {}.                                                                                                             
 97.    361     0.001   6.98 KiB          0              4             16   ['Debug']                    0   Attach table {}.                                                                                                             
 98.    350     0.001   7.86 KiB          0            346             68   ['Debug']                0.063   There are no data parts                                                                                                      
 99.    345     0.001   17.79 KiB         0              4             16   ['Debug']                    0   Clean info about detached table {} from snapshot.                                                                            
100.    330     0.001   15.00 KiB         0              1              8   ['Information']              1   {} for session {} took {} ms                                                                                                 
      count   count_%   size         size_%   uniq_loggers   uniq_threads   levels            background_%   message_format_string
Top messages without format string (fmt::runtime):
count   pattern                            runtime_message                                                                                                                                                                                                                                              line                     
 1.     28   CodeDBExceptionReceivedfromDBExc   Code: 516. DB::Exception: Received from 127.0.0.2:9000. DB::Exception: default: Authentication failed: password is incorrect, or there is no user with such name.
If you have installed ClickHouse and forgot password you can reset it in the configuration fi   ('/executeQuery.cpp',221) 
 2.     10   CodeDBExceptionSyntaxerrorfailed   Code: 62. DB::Exception: Syntax error: failed at position 1048577 ('-'): -. Max query size exceeded: '-'. (SYNTAX_ERROR) (version 24.8.14.10029.altinitytest (altinity build)) (from [::ffff:127.0.0.1]:33910) (in query: select 1 in (1, 1, ... (truncated 9486   ('/executeQuery.cpp',221) 
 3.      6   voidDBStorageReplicatedMergeTree   void DB::StorageReplicatedMergeTree::mutationsUpdatingTask(): Code: 999. Coordination::Exception: Session expired. (KEEPER_EXCEPTION), Stack trace (when copying this message, always include the lines below):
0. /build/contrib/llvm-project/libcxx/include/e   ('/Exception.cpp',273)    
 4.      4   CodeDBExceptionEmptyqueryInscope   Code: 62. DB::Exception: Empty query: In scope SELECT formatQuery(''). (SYNTAX_ERROR) (version 24.8.14.10029.altinitytest (altinity build)) (from [::1]:56604) (comment: 02882_formatQuery.sql) (in query: SELECT formatQuery('');), Stack trace (when copying t   ('/executeQuery.cpp',221) 
 5.      3   startingup                         starting up                                                                                                                                                                                                                                                  ('',0)                    
 6.      3   invalidelectiontimeoutupperbound   invalid election timeout upper bound detected, adjusted to 0                                                                                                                                                                                                 ('/LoggerWrapper.h',43)   
 7.      3   peerDCIDlocalhostvotingmembermyi   peer 1: DC ID 0, localhost:9234, voting member, 1
my id: 1, voting_member
num peers: 0                                                                                                                                                                         ('/LoggerWrapper.h',43)   
 8.      3   parameterselectiontimeoutrangehe   parameters: election timeout range 0 - 0, heartbeat 0, leadership expiry 0, max batch 100, backoff 50, snapshot distance 10000, enable randomized snapshot creation NO, log sync stop gap 99999, reserved logs 2147483647, client timeout 10000, auto forwarding   ('/LoggerWrapper.h',43)   
 9.      3   statemachinecommitindexprecommit   state machine commit index 0, precommit index 0, last log index 0                                                                                                                                                                                            ('/LoggerWrapper.h',43)   
10.      3   waitforHBforms                     wait for HB, for 50 + [0, 0] ms                                                                                                                                                                                                                              ('/LoggerWrapper.h',43)   
11.      3   StartingClickHousealtinitytestre   Starting ClickHouse 24.8.14.10029.altinitytest (revision: 4294967295, git hash: cb5b428c62ab91de3d5875384840273f2cb86a48, build id: 3B01A4FCFE5552303A3D98E8E7ED3383E584BE7F), PID 410                                                                       ('',0)                    
12.      3   RaftASIOlistenerinitiatedonunsec   Raft ASIO listener initiated on :::9234, unsecured                                                                                                                                                                                                           ('/LoggerWrapper.h',43)   
13.      3   newconfigurationlogidxprevlogidx   new configuration: log idx 1, prev log idx 0
peer 1, DC ID 0, localhost:9234, voting member, 1
my id: 1, leader: 1, term: 1                                                                                                                                    ('/LoggerWrapper.h',43)   
14.      3   PRIORITYdecaytargetmine            [PRIORITY] decay, target 1 -> 1, mine 1                                                                                                                                                                                                                      ('/LoggerWrapper.h',43)   
15.      3   configatindexiscommittedprevconf   config at index 1 is committed, prev config log idx 0                                                                                                                                                                                                        ('/LoggerWrapper.h',43)   
16.      3   newelectiontimeoutrange            new election timeout range: 0 - 0                                                                                                                                                                                                                            ('/LoggerWrapper.h',43)   
17.      3   invalidelectiontimeoutlowerbound   invalid election timeout lower bound detected, adjusted to 0                                                                                                                                                                                                 ('/LoggerWrapper.h',43)   
18.      3   VOTEINITmyidmyrolecandidateterml   [VOTE INIT] my id 1, my role candidate, term 1, log idx 0, log term 0, priority (target 1 / mine 1)                                                                                                                                                          ('/LoggerWrapper.h',43)   
19.      3   INITRAFTSERVERcommitindextermele      === INIT RAFT SERVER ===
commit index 0
term 0
election timer allowed
log store start 1, end 0
config log idx 0, prev log idx 0
 -- ASYNC REPLICATION --                                                                                                        ('/LoggerWrapper.h',43)   
20.      3   BECOMELEADERappendednewconfigat    [BECOME LEADER] appended new config at 1                                                                                                                                                                                                                     ('/LoggerWrapper.h',43)   
21.      3   Electiontimeoutinitiateleaderele   Election timeout, initiate leader election                                                                                                                                                                                                                   ('/LoggerWrapper.h',43)   
22.      3   ELECTIONTIMEOUTcurrentrolefollow   [ELECTION TIMEOUT] current role: follower, log last term 0, state term 0, target p 1, my p 1, hb dead, pre-vote NOT done                                                                                                                                     ('/LoggerWrapper.h',43)   
23.      3   bgappendentriesthreadinitiated     bg append_entries thread initiated                                                                                                                                                                                                                           ('/LoggerWrapper.h',43)   
24.      3   globalmanagerdoesnotexistwilluse   global manager does not exist. will use local thread for commit and append                                                                                                                                                                                   ('/LoggerWrapper.h',43)   
25.      3   Forkedachildprocesstowatch         Forked a child process to watch                                                                                                                                                                                                                              ('',0)                    
26.      3   newconfiglogidxprevlogidxcurconf   new config log idx 1, prev log idx 0, cur config log idx 0, prev log idx 0                                                                                                                                                                                   ('/LoggerWrapper.h',43)   
27.      3   numberofpendingcommitelements      number of pending commit elements: 0                                                                                                                                                                                                                         ('/LoggerWrapper.h',43)   
28.      2   CodeDBExceptionReceivedfromlocal   Code: 439. DB::Exception: Received from localhost:9000. DB::Exception: Cannot schedule a task: fault injected (threads=1, jobs=1). Stack trace:
0. /build/contrib/llvm-project/libcxx/include/exception:141: Poco::Exception::Exception(String const&, int) @ 0   ('/TCPHandler.cpp',765)   
29.      2   prevotetermisdifferentresetitto    pre-vote term (0) is different, reset it to 1                                                                                                                                                                                                                ('/LoggerWrapper.h',43)   
30.      2   CodeDBExceptionCouldnotlistobjec   Code: 499. DB::Exception: Could not list objects in bucket 'datasets-documentation' with prefix 'MyPrefix/BU - UNIT - 1/', S3 exception: `InvalidAccessKeyId`, message: 'The AWS Access Key Id you provided does not exist in our records.': The table structure   ('/executeQuery.cpp',221)
Top messages not matching their format strings:
message_format_string                                                                                  count()   any_message                                                                                                                                                                                                                                               
1.                                                                                                              73   Forked a child process to watch                                                                                                                                                                                                                            
2.  {} is in use (by merge/mutation/INSERT) (consider increasing temporary_directories_lifetime setting)        68   /var/lib/clickhouse/store/ac6/ac6cd918-cba6-4a68-8a19-8863e5d1f1af/tmp_insert_201403_11_11_0/ is in use (by merge/mutation/INSERT) (consider increasing temporary_directories_lifetime setting) (skipped 9 similar messages)                               
3.  (from {}{}{}){}{} {} (stage: {})                                                                             3   (from [::1]:46032) (comment: 02682_quantiles_too_large_size.sql) -- This query throw high-level exception instead of low-level "too large size passed to allocator":
 SELECT * FROM format(RowBinary, 'ik2 	String, 	Sum 		AggregateFunction(sum, UInt16), 	A$g 		AggregateFunction(quantiles(0.4, 0.9), UInt64), 	GroupArray	AggregateFunction(groupArray, String)', '295TMi44400000005942762421546108502
�
z
*
ParalcelParsingInputFormat
   
te Date,     
I
�
!
STRING
 
d Tuple(UInt8)
vvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvvTabSeparatedWithNamesAndTypes
d Date, a S)ring, x UInt32, y UInt64, z Float32
29TabSeparatevvvvvvvdRawWithNames
a UInt32
26TabSeparatedR,�b UInt32
26TabSeparatedRawWithNthNames
vvvvv
1
key U7878
'); (stage: Complete)
Top short messages:
c   message_format_string        substr(any(toValidUTF8(message)), 1, 120)                                                                                  min_length_without_exception_boilerplate
1.  19   Cannot TRUNCATE dictionary   Code: 62. DB::Exception: Cannot TRUNCATE dictionary. (SYNTAX_ERROR) (version 24.8.14.10029.altinitytest (altinity build)                                         27 
2.  17   {}                           Server was built in debug mode. It will work slowly.                                                                                                             26 
3.  16   Creating {}: {}              Creating table test_u68jqrrn_02911_keeper_map.`02911_backup_restore_keeper_map2`: CREATE TABLE IF NOT EXISTS test_u68jqr                                        304 
4.   5   Found {} on {}               Found snapshot_11.bin.zstd on LocalSnapshotDisk                                                                                                                  18 
5.   2   Substitution {} is not set   Code: 456. DB::Exception: Substitution `s` is not set. (UNKNOWN_QUERY_PARAMETER) (version 24.8.14.10029.altinitytest (al                                         29
Top messages by level:
(0.023641479662031388,'Table is in readonly mode (replica path: {})')	Error
(0.0006801346277914668,'Not enabled four letter command {}')	Warning
(0.003929234906840989,'Requesting session ID for the new client')	Information
(0.047562786142354124,'Processed in {} sec.')	Debug
(0.052117744906763255,'{} Creating query context from {} context, user_id: {}, parent context user: {}')	Trace
2025-06-05 16:15:08,066 Stress test finished
+ echo -e 'Test script exit code\tOK\t\N\t'
+ rg -Fa 'No queries hung' /test_output/test_results.tsv
+ grep -Fa OK
No queries hung	OK	\N	
+ stop_server
+ local max_tries=90
+ local check_hang=true
+ local pid
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ pid=2955
+ clickhouse stop --max-tries 90 --do-not-kill
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Sent terminate signal to process with pid 2955.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 2955.
The process with pid = 2955 does not exist.
Server stopped
+ return
+ mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ unset THREAD_FUZZER_CPU_TIME_PERIOD_US THREAD_FUZZER_EXPLICIT_MEMORY_EXCEPTION_PROBABILITY THREAD_FUZZER_EXPLICIT_SLEEP_PROBABILITY THREAD_FUZZER_SLEEP_PROBABILITY THREAD_FUZZER_SLEEP_TIME_US_MAX THREAD_FUZZER_pthread_mutex_lock_AFTER_MIGRATE_PROBABILITY THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_PROBABILITY THREAD_FUZZER_pthread_mutex_lock_AFTER_SLEEP_TIME_US_MAX THREAD_FUZZER_pthread_mutex_lock_BEFORE_MIGRATE_PROBABILITY THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_PROBABILITY THREAD_FUZZER_pthread_mutex_lock_BEFORE_SLEEP_TIME_US_MAX THREAD_FUZZER_pthread_mutex_unlock_AFTER_MIGRATE_PROBABILITY THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_PROBABILITY THREAD_FUZZER_pthread_mutex_unlock_AFTER_SLEEP_TIME_US_MAX THREAD_FUZZER_pthread_mutex_unlock_BEFORE_MIGRATE_PROBABILITY THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_PROBABILITY THREAD_FUZZER_pthread_mutex_unlock_BEFORE_SLEEP_TIME_US_MAX THREAD_POOL_FAULT_INJECTION
+ start_server
+ counter=0
+ max_attempt=120
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 0 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=1
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 1 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=2
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 2 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=3
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 3 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=4
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 4 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
127.0.0.1 - - [05/Jun/2025:14:15:16 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
127.0.0.1 - - [05/Jun/2025:14:15:16 +0000] "PUT /devstoreaccount1/cont/afylbwqpvclkwslnsqzlmrfercfhqfuu HTTP/1.1" 201 -
127.0.0.1 - - [05/Jun/2025:14:15:16 +0000] "GET /devstoreaccount1/cont/afylbwqpvclkwslnsqzlmrfercfhqfuu HTTP/1.1" 206 4
127.0.0.1 - - [05/Jun/2025:14:15:16 +0000] "GET /devstoreaccount1/cont/afylbwqpvclkwslnsqzlmrfercfhqfuu HTTP/1.1" 206 2
127.0.0.1 - - [05/Jun/2025:14:15:16 +0000] "DELETE /devstoreaccount1/cont/afylbwqpvclkwslnsqzlmrfercfhqfuu HTTP/1.1" 202 -
+ counter=5
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 5 -gt 120 ']'
+ clickhouse start --user root
+ sleep 0.5
+ counter=6
+ clickhouse-client --query 'SELECT 1'
1
+ attach_gdb_to_clickhouse
++ run_with_retry 5 clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ [[ hxB =~ e ]]
++ set_e=false
++ set +e
++ local total_retries=5
++ shift
++ local retry=0
++ '[' 0 -ge 5 ']'
++ clickhouse-client --query 'SELECT count() FROM system.build_options WHERE name = '\''CXX_FLAGS'\'' AND position('\''sanitize=address'\'' IN value)'
++ false
++ return
+ IS_ASAN=0
+ [[ 0 = \1 ]]
++ kill -l SIGRTMIN
+ RTMIN=34
+ echo '
        set follow-fork-mode parent
        handle SIGHUP nostop noprint pass
        handle SIGINT nostop noprint pass
        handle SIGQUIT nostop noprint pass
        handle SIGPIPE nostop noprint pass
        handle SIGTERM nostop noprint pass
        handle SIGUSR1 nostop noprint pass
        handle SIGUSR2 nostop noprint pass
        handle SIG34 nostop noprint pass
        info signals
        continue
        backtrace full
        info registers
        p top' 1 KiB of the 'stack:
        p/x *(uint64_t[128]*)$sp
        maintenance info sections
        thread apply all backtrace full
        disassemble /s
        up
        disassemble /s
        up
        disassemble /s
        p "done"
        detach
        quit
        '
+ sleep 5
+ ts '%Y-%m-%d %H:%M:%S'
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ gdb -batch -command script.gdb -p 64761
+ run_with_retry 60 clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
+ [[ hxB =~ e ]]
+ set_e=false
+ set +e
+ local total_retries=60
+ shift
+ local retry=0
+ '[' 0 -ge 60 ']'
+ clickhouse-client --query 'SELECT '\''Connected to clickhouse-server after attaching gdb'\'''
Connected to clickhouse-server after attaching gdb
+ false
+ return
+ check_server_start
+ clickhouse-client --query 'SELECT '\''Server successfully started'\'', '\''OK'\'', NULL, '\'''\'''
+ '[' -s /test_output/application_errors.txt ']'
+ rm /test_output/application_errors.txt
rm: cannot remove '/test_output/application_errors.txt': No such file or directory
+ stop_server
+ local max_tries=90
+ local check_hang=true
+ local pid
++ cat /var/run/clickhouse-server/clickhouse-server.pid
+ pid=64761
+ clickhouse stop --max-tries 90 --do-not-kill
script.gdb:13: Error in sourced command file:
No stack.
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Sent terminate signal to process with pid 64761.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 64761.
The process with pid = 64761 is running.
Waiting for server to stop
Now there is no clickhouse-server process.
Server stopped
+ return
+ '[' -f /var/log/clickhouse-server/clickhouse-server.log ']'
+ '[' -f /var/log/clickhouse-server/stderr.log ']'
+ mv /var/log/clickhouse-server/clickhouse-server.log /var/log/clickhouse-server/clickhouse-server.final.log
+ check_logs_for_critical_errors
+ sed -n '/WARNING:.*anitizer/,/^$/p' /var/log/clickhouse-server/stderr.log
+ rg -Fav -e 'ASan doesn'\''t fully support makecontext/swapcontext functions' -e DB::Exception /test_output/tmp
+ echo -e 'No sanitizer asserts\tOK\t\N\t'
+ rm -f /test_output/tmp
+ rg -Fa '  Application: Child process was terminated by signal 9' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'No OOM messages in clickhouse-server.log\tOK\t\N\t'
+ rg -Fa 'Code: 49. DB::Exception: ' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'No logical errors\tOK\t\N\t'
+ '[' -s /test_output/logical_errors.txt ']'
+ rm /test_output/logical_errors.txt
+ grep -v a.myext
+ rg --text 'Code: 499.*The specified key does not exist' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'No lost s3 keys\tOK\t\N\t'
+ grep SharedMergeTreePartCheckThread
+ rg -Fa 'it is lost forever' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'No SharedMergeTree lost forever in clickhouse-server.log\tOK\t\N\t'
+ '[' -s /test_output/no_such_key_errors.txt ']'
+ rm /test_output/no_such_key_errors.txt
+ rg -Fa '########################################' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'Not crashed\tOK\t\N\t'
+ rg -Fa '  ' /var/log/clickhouse-server/clickhouse-server.err.log /var/log/clickhouse-server/clickhouse-server.final.log /var/log/clickhouse-server/clickhouse-server.initial.log /var/log/clickhouse-server/clickhouse-server.stress.log
+ echo -e 'No fatal messages in clickhouse-server.log\tOK\t\N\t'
+ '[' -s /test_output/fatal_messages.txt ']'
+ rm /test_output/fatal_messages.txt
+ rg -Faz '########################################' /test_output/gdb.log /test_output/stress_run_logs.tar.zst /test_output/test_results.tsv
+ rg -Fa ' received signal ' /test_output/gdb.log
+ dmesg -T
+ grep -q -F -e 'Out of memory: Killed process' -e 'oom_reaper: reaped process' -e oom-kill:constraint=CONSTRAINT_NONE /test_output/dmesg.log
+ echo -e 'No OOM in dmesg\tOK\t\N\t'
+ tar -chf /test_output/coordination.tar /var/lib/clickhouse/coordination
tar: Removing leading `/' from member names
tar: Removing leading `/' from hard link targets
+ collect_query_and_trace_logs
+ for table in query_log trace_log metric_log
+ zstd --threads=0
+ clickhouse-local --config-file=/etc/clickhouse-server/config.xml --only-system-tables -q 'select * from system.query_log format TSVWithNamesAndTypes'
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
127.0.0.1 - - [05/Jun/2025:14:15:33 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
+ for table in query_log trace_log metric_log
+ clickhouse-local --config-file=/etc/clickhouse-server/config.xml --only-system-tables -q 'select * from system.trace_log format TSVWithNamesAndTypes'
+ zstd --threads=0
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
127.0.0.1 - - [05/Jun/2025:14:15:35 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
+ for table in query_log trace_log metric_log
+ zstd --threads=0
+ clickhouse-local --config-file=/etc/clickhouse-server/config.xml --only-system-tables -q 'select * from system.metric_log format TSVWithNamesAndTypes'
Logging trace to /var/log/clickhouse-server/clickhouse-server.log
Logging errors to /var/log/clickhouse-server/clickhouse-server.err.log
127.0.0.1 - - [05/Jun/2025:14:15:36 +0000] "GET /devstoreaccount1/cont?restype=container HTTP/1.1" 200 -
+ mv /var/log/clickhouse-server/stderr.log /test_output/
+ clickhouse-local --structure 'test String, res String, time Nullable(Float32), desc String' -q 'SELECT '\''failure'\'', test FROM table WHERE res != '\''OK'\'' order by
(test like '\''%Sanitizer%'\'') DESC,
(test like '\''%Killed by signal%'\'') DESC,
(test like '\''%gdb.log%'\'') DESC,
(test ilike '\''%possible deadlock%'\'') DESC,
(test like '\''%start%'\'') DESC,
(test like '\''%dmesg%'\'') DESC,
(test like '\''%OOM%'\'') DESC,
(test like '\''%Signal 9%'\'') DESC,
(test like '\''%Fatal message%'\'') DESC,
rowNumberInAllBlocks()
LIMIT 1'
+ '[' -s /test_output/check_status.tsv ']'
+ echo -e 'success\tNo errors found'
+ rg 'OOM in dmesg|Signal 9' /test_output/check_status.tsv
+ collect_core_dumps
+ find . -type f -maxdepth 1 -name 'core.*'
+ read -r core