++ rg -v '#' /usr/share/zoneinfo/zone.tab
++ awk '{print $3}'
++ shuf
++ head -n1
+ TZ=Pacific/Tongatapu
Choosen random timezone Pacific/Tongatapu
+ echo 'Choosen random timezone Pacific/Tongatapu'
+ ln -snf /usr/share/zoneinfo/Pacific/Tongatapu /etc/localtime
+ echo Pacific/Tongatapu
+ dpkg -i package_folder/clickhouse-common-static_23.3.19.34.altinitystable+tsan_amd64.deb
Selecting previously unselected package clickhouse-common-static.
(Reading database ... 53515 files and directories currently installed.)
Preparing to unpack .../clickhouse-common-static_23.3.19.34.altinitystable+tsan_amd64.deb ...
Unpacking clickhouse-common-static (23.3.19.34.altinitystable+tsan) ...
Setting up clickhouse-common-static (23.3.19.34.altinitystable+tsan) ...
+ dpkg -i package_folder/clickhouse-common-static-dbg_23.3.19.34.altinitystable+tsan_amd64.deb
Selecting previously unselected package clickhouse-common-static-dbg.
(Reading database ... 53529 files and directories currently installed.)
Preparing to unpack .../clickhouse-common-static-dbg_23.3.19.34.altinitystable+tsan_amd64.deb ...
Unpacking clickhouse-common-static-dbg (23.3.19.34.altinitystable+tsan) ...
Setting up clickhouse-common-static-dbg (23.3.19.34.altinitystable+tsan) ...
+ dpkg -i package_folder/clickhouse-server_23.3.19.34.altinitystable+tsan_amd64.deb
Selecting previously unselected package clickhouse-server.
(Reading database ... 53538 files and directories currently installed.)
Preparing to unpack .../clickhouse-server_23.3.19.34.altinitystable+tsan_amd64.deb ...
Unpacking clickhouse-server (23.3.19.34.altinitystable+tsan) ...
Setting up clickhouse-server (23.3.19.34.altinitystable+tsan) ...
Cannot set 'net_admin' or 'ipc_lock' or 'sys_nice' or 'net_bind_service' capability for clickhouse binary. This is optional. Taskstats accounting will be disabled. To enable taskstats accounting you may add the required capability later manually.
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.
Symlink /usr/bin/clickhouse-copier already exists but it points to /clickhouse. Will replace the old symlink to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-copier 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.
Creating symlink /usr/bin/clickhouse-keeper-converter to /usr/bin/clickhouse.
Creating symlink /usr/bin/clickhouse-disks 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/'
groupadd -r clickhouse-bridge
useradd -r --shell /bin/false --home-dir /nonexistent -g clickhouse-bridge clickhouse-bridge
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-odbc-bridge'
chown -R clickhouse-bridge:clickhouse-bridge '/usr/bin/clickhouse-library-bridge'
[1mPassword for default user is empty string. See /etc/clickhouse-server/users.xml and /etc/clickhouse-server/users.d to change it.[0m
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
Processing triggers for systemd (245.4-4ubuntu3.23) ...
+ dpkg -i package_folder/clickhouse-client_23.3.19.34.altinitystable+tsan_amd64.deb
Selecting previously unselected package clickhouse-client.
(Reading database ... 53552 files and directories currently installed.)
Preparing to unpack .../clickhouse-client_23.3.19.34.altinitystable+tsan_amd64.deb ...
Unpacking clickhouse-client (23.3.19.34.altinitystable+tsan) ...
Setting up clickhouse-client (23.3.19.34.altinitystable+tsan) ...
+ ln -s /usr/share/clickhouse-test/clickhouse-test /usr/bin/clickhouse-test
+ /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/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/custom_settings_prefixes.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/disks.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/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/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/metadata_cache.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_test.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/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/reverse_dns_query_function.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/
+ '[' /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/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 '' ]]
+ rm -f /etc/clickhouse-server/config.d/zookeeper_fault_injection.xml
+ ln -sf /usr/share/clickhouse-test/config/config.d/zookeeper.xml /etc/clickhouse-server/config.d/
+ create_snapshot_on_exit=1
+ sed --follow-symlinks -i 's|true|1|' /etc/clickhouse-server/config.d/keeper_port.xml
+ [[ -n '' ]]
+ [[ -n '' ]]
+ [[ -n '' ]]
+ ARM=aarch64
++ uname -m
+ OS=x86_64
+ [[ -n 1 ]]
+ echo x86_64
+ [[ '' -eq 1 ]]
+ [[ x86_64 == \a\a\r\c\h\6\4 ]]
+ echo 'Adding azure configuration'
+ ln -sf /usr/share/clickhouse-test/config/config.d/azure_storage_conf.xml /etc/clickhouse-server/config.d/
x86_64
Adding azure configuration
+ ln -sf /usr/share/clickhouse-test/config/config.d/storage_conf.xml /etc/clickhouse-server/config.d/
+ ln -sf /usr/share/clickhouse-test/config/users.d/s3_cache.xml /etc/clickhouse-server/users.d/
+ [[ -n '' ]]
+ ln -sf /usr/share/clickhouse-test/config/client_config.xml /etc/clickhouse-client/config.xml
+ ./setup_minio.sh stateful
+ 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 stateful
+ local query_dir
++ check_arg stateful
++ local query_dir
++ '[' '!' 1 -eq 1 ']'
++ case "$1" in
++ query_dir=1_stateful
++ echo 1_stateful
+ query_dir=1_stateful
+ '[' '!' -f ./minio ']'
+ start_minio
+ mkdir -p ./minio_data
+ ./minio --version
minio version RELEASE.2022-01-03T18-22-58Z
+ wait_for_it
+ local counter=0
+ ./minio server --address :11111 ./minio_data
+ local max_counter=60
+ local url=http://localhost:11111
+ params=(--silent --verbose)
+ local params
+ curl --silent --verbose http://localhost:11111
+ grep AccessDenied
+ [[ 0 == \6\0 ]]
+ echo 'trying to connect to minio'
+ sleep 1
trying to connect to minio
API: http://172.17.0.2:11111 http://127.0.0.1:11111
Console: http://172.17.0.2:39099 http://127.0.0.1:39099
Documentation: https://docs.min.io
WARNING: Console endpoint is listening on a dynamic port (39099), please use --console-address ":PORT" to choose a static port.
You are running an older version of MinIO released 2 years ago
Update:
Run `mc admin update`
Azurite Blob service is starting on 0.0.0.0:10000
Azurite Blob service successfully listens on http://0.0.0.0:10000
+ counter=1
+ curl --silent --verbose http://localhost:11111
+ grep AccessDenied
AccessDenied
Access Denied./17BE38BB73D971EA3a73defd-dfba-4964-93a4-890201cb41b0
+ lsof -i :11111
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
minio 229 root 9u IPv6 21393 0t0 TCP *:11111 (LISTEN)
+ sleep 5
+ setup_minio stateful
+ local test_type=stateful
+ ./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 set clickminio readwrite user=test
Policy `readwrite` is set on user `test`
+ ./mc mb clickminio/test
Bucket created successfully `clickminio/test`.
+ '[' stateful = stateless ']'
+ upload_data 1_stateful /usr/share/clickhouse-test
+ local query_dir=1_stateful
+ local test_path=/usr/share/clickhouse-test
+ local data_path=/usr/share/clickhouse-test/queries/1_stateful/data_minio
++ ls /usr/share/clickhouse-test/queries/1_stateful/data_minio
ls: cannot access '/usr/share/clickhouse-test/queries/1_stateful/data_minio': No such file or directory
+ setup_aws_credentials
+ local minio_root_user=clickhouse
+ local minio_root_password=clickhouse
+ mkdir -p /root/.aws
+ cat
+ start
+ [[ -n '' ]]
+ counter=0
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 0 -gt 120 ']'
+ timeout 120 service clickhouse-server start
==347==Installed the sigaction for signal 11
==347==Installed the sigaction for signal 7
==347==Installed the sigaction for signal 8
==347==Using llvm-symbolizer found at: /usr/bin/llvm-symbolizer-15
***** Running under ThreadSanitizer v3 (pid 347) *****
ThreadSanitizer: growing sync allocator: 0 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 0 out of 262144*4096
ThreadSanitizer: growing sync allocator: 1 out of 1048576*1024
ThreadSanitizer: growing sync allocator: 2 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 1 out of 262144*4096
ThreadSanitizer: growing sync allocator: 3 out of 1048576*1024
ThreadSanitizer: forked new process with pid 348, parent had 1 threads
Stats: SizeClassAllocator64: 4M mapped (0M rss) in 9874 allocations; remains 5329
01 ( 16): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 3968 avail: 4096 rss: 4K releases: 0 last released: 0K region: 0x7b0400000000
02 ( 32): mapped: 64K allocs: 2560 frees: 2176 inuse: 384 num_freed_chunks 1664 avail: 2048 rss: 52K releases: 0 last released: 0K region: 0x7b0800000000
03 ( 48): mapped: 192K allocs: 3072 frees: 2048 inuse: 1024 num_freed_chunks 3072 avail: 4096 rss: 132K releases: 0 last released: 0K region: 0x7b0c00000000
04 ( 64): mapped: 64K allocs: 768 frees: 128 inuse: 640 num_freed_chunks 384 avail: 1024 rss: 48K releases: 0 last released: 0K region: 0x7b1000000000
05 ( 80): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 563 avail: 819 rss: 16K releases: 0 last released: 0K region: 0x7b1400000000
06 ( 96): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 426 avail: 682 rss: 20K releases: 0 last released: 0K region: 0x7b1800000000
07 ( 112): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 457 avail: 585 rss: 12K releases: 0 last released: 0K region: 0x7b1c00000000
08 ( 128): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 384 avail: 512 rss: 16K releases: 0 last released: 0K region: 0x7b2000000000
09 ( 144): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 327 avail: 455 rss: 8K releases: 0 last released: 0K region: 0x7b2400000000
10 ( 160): mapped: 64K allocs: 384 frees: 128 inuse: 256 num_freed_chunks 153 avail: 409 rss: 56K releases: 0 last released: 0K region: 0x7b2800000000
11 ( 176): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 244 avail: 372 rss: 4K releases: 0 last released: 0K region: 0x7b2c00000000
12 ( 192): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 213 avail: 341 rss: 8K releases: 0 last released: 0K region: 0x7b3000000000
13 ( 208): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 187 avail: 315 rss: 4K releases: 0 last released: 0K region: 0x7b3400000000
14 ( 224): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 164 avail: 292 rss: 4K releases: 0 last released: 0K region: 0x7b3800000000
15 ( 240): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 17 avail: 273 rss: 32K releases: 0 last released: 0K region: 0x7b3c00000000
16 ( 256): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 128 avail: 256 rss: 4K releases: 0 last released: 0K region: 0x7b4000000000
17 ( 320): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 76 avail: 204 rss: 12K releases: 0 last released: 0K region: 0x7b4400000000
18 ( 384): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 42 avail: 170 rss: 8K releases: 0 last released: 0K region: 0x7b4800000000
19 ( 448): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 18 avail: 146 rss: 4K releases: 0 last released: 0K region: 0x7b4c00000000
20 ( 512): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 0 avail: 128 rss: 8K releases: 0 last released: 0K region: 0x7b5000000000
21 ( 640): mapped: 64K allocs: 102 frees: 0 inuse: 102 num_freed_chunks 0 avail: 102 rss: 8K releases: 0 last released: 0K region: 0x7b5400000000
22 ( 768): mapped: 64K allocs: 85 frees: 0 inuse: 85 num_freed_chunks 0 avail: 85 rss: 4K releases: 0 last released: 0K region: 0x7b5800000000
23 ( 896): mapped: 64K allocs: 73 frees: 0 inuse: 73 num_freed_chunks 0 avail: 73 rss: 8K releases: 0 last released: 0K region: 0x7b5c00000000
24 ( 1024): mapped: 64K allocs: 64 frees: 0 inuse: 64 num_freed_chunks 0 avail: 64 rss: 16K releases: 0 last released: 0K region: 0x7b6000000000
25 ( 1280): mapped: 192K allocs: 153 frees: 51 inuse: 102 num_freed_chunks 51 avail: 153 rss: 144K releases: 0 last released: 0K region: 0x7b6400000000
26 ( 1536): mapped: 64K allocs: 42 frees: 0 inuse: 42 num_freed_chunks 0 avail: 42 rss: 4K releases: 0 last released: 0K region: 0x7b6800000000
27 ( 1792): mapped: 64K allocs: 36 frees: 0 inuse: 36 num_freed_chunks 0 avail: 36 rss: 4K releases: 0 last released: 0K region: 0x7b6c00000000
29 ( 2560): mapped: 64K allocs: 25 frees: 0 inuse: 25 num_freed_chunks 0 avail: 25 rss: 4K releases: 0 last released: 0K region: 0x7b7400000000
31 ( 3584): mapped: 64K allocs: 18 frees: 0 inuse: 18 num_freed_chunks 0 avail: 18 rss: 4K releases: 0 last released: 0K region: 0x7b7c00000000
32 ( 4096): mapped: 64K allocs: 16 frees: 0 inuse: 16 num_freed_chunks 0 avail: 16 rss: 16K releases: 0 last released: 0K region: 0x7b8000000000
34 ( 6144): mapped: 64K allocs: 10 frees: 0 inuse: 10 num_freed_chunks 0 avail: 10 rss: 12K releases: 0 last released: 0K region: 0x7b8800000000
35 ( 7168): mapped: 64K allocs: 9 frees: 0 inuse: 9 num_freed_chunks 0 avail: 9 rss: 24K releases: 0 last released: 0K region: 0x7b8c00000000
39 ( 14336): mapped: 64K allocs: 4 frees: 0 inuse: 4 num_freed_chunks 0 avail: 4 rss: 16K releases: 0 last released: 0K region: 0x7b9c00000000
42 ( 24576): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 24K releases: 0 last released: 0K region: 0x7ba800000000
43 ( 28672): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 28K releases: 0 last released: 0K region: 0x7bac00000000
50 ( 98304): mapped: 128K allocs: 1 frees: 0 inuse: 1 num_freed_chunks 0 avail: 1 rss: 88K releases: 0 last released: 0K region: 0x7bc800000000
52 (131072): mapped: 2048K allocs: 16 frees: 14 inuse: 2 num_freed_chunks 14 avail: 16 rss: 0K releases: 0 last released: 0K region: 0x7bd000000000
Stats: LargeMmapAllocator: allocated 0 times, remains 0 (0 K) max 0 M; by size logs:
chown -R clickhouse: '/var/run/clickhouse-server/'
Will run sudo --preserve-env -u 'clickhouse' /usr/bin/clickhouse-server --config-file /etc/clickhouse-server/config.xml --pid-file /var/run/clickhouse-server/clickhouse-server.pid --daemon
Waiting for server to start
Waiting for server to start
Server started
+ sleep 0.5
+ counter=1
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 1 -gt 120 ']'
+ timeout 120 service clickhouse-server start
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is already running.
+ sleep 0.5
+ counter=2
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 2 -gt 120 ']'
+ timeout 120 service clickhouse-server start
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is already running.
+ sleep 0.5
+ counter=3
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ '[' 3 -gt 120 ']'
+ timeout 120 service clickhouse-server start
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is already running.
+ sleep 0.5
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "PUT /devstoreaccount1/cont?restype=container HTTP/1.1" 201 -
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "PUT /devstoreaccount1/cont/qgihmtgnedgbiajpyxhthvdksoynzyqd?blockid=ebbanrmhotgokbngjpgjumkzcbdhuajvchpgnsjoeavwouciutloygglxxcvqefi&comp=block HTTP/1.1" 201 -
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "PUT /devstoreaccount1/cont/qgihmtgnedgbiajpyxhthvdksoynzyqd?comp=blocklist HTTP/1.1" 201 -
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "GET /devstoreaccount1/cont/qgihmtgnedgbiajpyxhthvdksoynzyqd HTTP/1.1" 206 4
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "GET /devstoreaccount1/cont/qgihmtgnedgbiajpyxhthvdksoynzyqd HTTP/1.1" 206 2
127.0.0.1 - - [19/Mar/2024:16:54:55 +0000] "DELETE /devstoreaccount1/cont/qgihmtgnedgbiajpyxhthvdksoynzyqd HTTP/1.1" 202 -
+ counter=4
+ clickhouse-client --query 'SELECT 1'
1
+ /s3downloader --url-prefix https://s3.amazonaws.com/clickhouse-datasets --dataset-names hits visits
INFO:root:Will fetch following datasets: hits, visits
INFO:root:Processing hits
INFO:root:Downloading from https://s3.amazonaws.com/clickhouse-datasets/hits/partitions/hits_v1.tar to temp path /tmp/ivif68or
INFO:root:Content length is 1271623680 bytes
INFO:root:Downloading finished
INFO:root:Will unpack data from temp path /tmp/ivif68or to clickhouse db /var/lib/clickhouse/
INFO:root:Unpack finished
INFO:root:Will remove downloaded file /tmp/ivif68or from filesystem if it exists
INFO:root:Processing of hits finished
INFO:root:Processing visits
INFO:root:Downloading from https://s3.amazonaws.com/clickhouse-datasets/visits/partitions/visits_v1.tar to temp path /tmp/kc9a_qir
INFO:root:Content length is 563968000 bytes
INFO:root:Downloading finished
INFO:root:Will unpack data from temp path /tmp/kc9a_qir to clickhouse db /var/lib/clickhouse/
INFO:root:Unpack finished
INFO:root:Will remove downloaded file /tmp/kc9a_qir from filesystem if it exists
INFO:root:Processing of visits finished
INFO:root:Fetch finished, enjoy your tables!
+ chmod 777 -R /var/lib/clickhouse
+ clickhouse-client --query 'SHOW DATABASES'
INFORMATION_SCHEMA
default
information_schema
system
+ clickhouse-client --query 'ATTACH DATABASE datasets ENGINE = Ordinary'
+ service clickhouse-server restart
==745==Installed the sigaction for signal 11
==745==Installed the sigaction for signal 7
==745==Installed the sigaction for signal 8
==745==Using llvm-symbolizer found at: /usr/bin/llvm-symbolizer-15
***** Running under ThreadSanitizer v3 (pid 745) *****
ThreadSanitizer: growing sync allocator: 0 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 0 out of 262144*4096
ThreadSanitizer: growing sync allocator: 1 out of 1048576*1024
ThreadSanitizer: growing sync allocator: 2 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 1 out of 262144*4096
ThreadSanitizer: growing sync allocator: 3 out of 1048576*1024
ThreadSanitizer: forked new process with pid 746, parent had 1 threads
Stats: SizeClassAllocator64: 4M mapped (0M rss) in 9874 allocations; remains 5329
01 ( 16): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 3968 avail: 4096 rss: 4K releases: 0 last released: 0K region: 0x7b0400000000
02 ( 32): mapped: 64K allocs: 2560 frees: 2176 inuse: 384 num_freed_chunks 1664 avail: 2048 rss: 52K releases: 0 last released: 0K region: 0x7b0800000000
03 ( 48): mapped: 192K allocs: 3072 frees: 2048 inuse: 1024 num_freed_chunks 3072 avail: 4096 rss: 132K releases: 0 last released: 0K region: 0x7b0c00000000
04 ( 64): mapped: 64K allocs: 768 frees: 128 inuse: 640 num_freed_chunks 384 avail: 1024 rss: 48K releases: 0 last released: 0K region: 0x7b1000000000
05 ( 80): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 563 avail: 819 rss: 16K releases: 0 last released: 0K region: 0x7b1400000000
06 ( 96): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 426 avail: 682 rss: 20K releases: 0 last released: 0K region: 0x7b1800000000
07 ( 112): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 457 avail: 585 rss: 12K releases: 0 last released: 0K region: 0x7b1c00000000
08 ( 128): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 384 avail: 512 rss: 16K releases: 0 last released: 0K region: 0x7b2000000000
09 ( 144): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 327 avail: 455 rss: 8K releases: 0 last released: 0K region: 0x7b2400000000
10 ( 160): mapped: 64K allocs: 384 frees: 128 inuse: 256 num_freed_chunks 153 avail: 409 rss: 56K releases: 0 last released: 0K region: 0x7b2800000000
11 ( 176): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 244 avail: 372 rss: 4K releases: 0 last released: 0K region: 0x7b2c00000000
12 ( 192): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 213 avail: 341 rss: 8K releases: 0 last released: 0K region: 0x7b3000000000
13 ( 208): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 187 avail: 315 rss: 4K releases: 0 last released: 0K region: 0x7b3400000000
14 ( 224): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 164 avail: 292 rss: 4K releases: 0 last released: 0K region: 0x7b3800000000
15 ( 240): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 17 avail: 273 rss: 32K releases: 0 last released: 0K region: 0x7b3c00000000
16 ( 256): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 128 avail: 256 rss: 4K releases: 0 last released: 0K region: 0x7b4000000000
17 ( 320): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 76 avail: 204 rss: 12K releases: 0 last released: 0K region: 0x7b4400000000
18 ( 384): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 42 avail: 170 rss: 8K releases: 0 last released: 0K region: 0x7b4800000000
19 ( 448): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 18 avail: 146 rss: 4K releases: 0 last released: 0K region: 0x7b4c00000000
20 ( 512): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 0 avail: 128 rss: 8K releases: 0 last released: 0K region: 0x7b5000000000
21 ( 640): mapped: 64K allocs: 102 frees: 0 inuse: 102 num_freed_chunks 0 avail: 102 rss: 8K releases: 0 last released: 0K region: 0x7b5400000000
22 ( 768): mapped: 64K allocs: 85 frees: 0 inuse: 85 num_freed_chunks 0 avail: 85 rss: 4K releases: 0 last released: 0K region: 0x7b5800000000
23 ( 896): mapped: 64K allocs: 73 frees: 0 inuse: 73 num_freed_chunks 0 avail: 73 rss: 8K releases: 0 last released: 0K region: 0x7b5c00000000
24 ( 1024): mapped: 64K allocs: 64 frees: 0 inuse: 64 num_freed_chunks 0 avail: 64 rss: 16K releases: 0 last released: 0K region: 0x7b6000000000
25 ( 1280): mapped: 192K allocs: 153 frees: 51 inuse: 102 num_freed_chunks 51 avail: 153 rss: 144K releases: 0 last released: 0K region: 0x7b6400000000
26 ( 1536): mapped: 64K allocs: 42 frees: 0 inuse: 42 num_freed_chunks 0 avail: 42 rss: 4K releases: 0 last released: 0K region: 0x7b6800000000
27 ( 1792): mapped: 64K allocs: 36 frees: 0 inuse: 36 num_freed_chunks 0 avail: 36 rss: 4K releases: 0 last released: 0K region: 0x7b6c00000000
29 ( 2560): mapped: 64K allocs: 25 frees: 0 inuse: 25 num_freed_chunks 0 avail: 25 rss: 4K releases: 0 last released: 0K region: 0x7b7400000000
31 ( 3584): mapped: 64K allocs: 18 frees: 0 inuse: 18 num_freed_chunks 0 avail: 18 rss: 4K releases: 0 last released: 0K region: 0x7b7c00000000
32 ( 4096): mapped: 64K allocs: 16 frees: 0 inuse: 16 num_freed_chunks 0 avail: 16 rss: 16K releases: 0 last released: 0K region: 0x7b8000000000
34 ( 6144): mapped: 64K allocs: 10 frees: 0 inuse: 10 num_freed_chunks 0 avail: 10 rss: 12K releases: 0 last released: 0K region: 0x7b8800000000
35 ( 7168): mapped: 64K allocs: 9 frees: 0 inuse: 9 num_freed_chunks 0 avail: 9 rss: 24K releases: 0 last released: 0K region: 0x7b8c00000000
39 ( 14336): mapped: 64K allocs: 4 frees: 0 inuse: 4 num_freed_chunks 0 avail: 4 rss: 16K releases: 0 last released: 0K region: 0x7b9c00000000
42 ( 24576): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 24K releases: 0 last released: 0K region: 0x7ba800000000
43 ( 28672): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 28K releases: 0 last released: 0K region: 0x7bac00000000
50 ( 98304): mapped: 128K allocs: 1 frees: 0 inuse: 1 num_freed_chunks 0 avail: 1 rss: 88K releases: 0 last released: 0K region: 0x7bc800000000
52 (131072): mapped: 2048K allocs: 16 frees: 14 inuse: 2 num_freed_chunks 14 avail: 16 rss: 0K releases: 0 last released: 0K region: 0x7bd000000000
Stats: LargeMmapAllocator: allocated 0 times, remains 0 (0 K) max 0 M; by size logs:
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is running.
Sent terminate signal to process with pid 350.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 350.
The process with pid = 350 is running.
Waiting for server to stop
Found pid = 350 in the list of running processes.
The process with pid = 350 is running.
Waiting for server to stop
Now there is no clickhouse-server process.
Server stopped
chown -R clickhouse: '/var/run/clickhouse-server/'
Will run sudo --preserve-env -u 'clickhouse' /usr/bin/clickhouse-server --config-file /etc/clickhouse-server/config.xml --pid-file /var/run/clickhouse-server/clickhouse-server.pid --daemon
Waiting for server to start
Waiting for server to start
Server started
+ for _ in {1..120}
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ sleep 1
+ for _ in {1..120}
+ clickhouse-client --query 'SELECT 1'
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ sleep 1
+ for _ in {1..120}
+ clickhouse-client --query 'SELECT 1'
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "PUT /devstoreaccount1/cont?restype=container HTTP/1.1" 409 -
Code: 210. DB::NetException: Connection refused (localhost:9000). (NETWORK_ERROR)
+ sleep 1
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "PUT /devstoreaccount1/cont/xlznslbyjpfoizhyxpguxweedqpyjitf?blockid=soveqllpiqjlsnavtrrswaqmrrjqxjsobdldugxenzlrdhkwqjdjmawnyiqtxets&comp=block HTTP/1.1" 201 -
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "PUT /devstoreaccount1/cont/xlznslbyjpfoizhyxpguxweedqpyjitf?comp=blocklist HTTP/1.1" 201 -
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "GET /devstoreaccount1/cont/xlznslbyjpfoizhyxpguxweedqpyjitf HTTP/1.1" 206 4
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "GET /devstoreaccount1/cont/xlznslbyjpfoizhyxpguxweedqpyjitf HTTP/1.1" 206 2
127.0.0.1 - - [19/Mar/2024:16:55:25 +0000] "DELETE /devstoreaccount1/cont/xlznslbyjpfoizhyxpguxweedqpyjitf HTTP/1.1" 202 -
+ for _ in {1..120}
+ clickhouse-client --query 'SELECT 1'
1
+ break
+ clickhouse-client --query 'SHOW TABLES FROM datasets'
hits_v1
visits_v1
+ [[ -n '' ]]
+ clickhouse-client --query 'CREATE DATABASE test'
+ clickhouse-client --query 'SHOW TABLES FROM test'
+ clickhouse-client --query 'RENAME TABLE datasets.hits_v1 TO test.hits'
+ clickhouse-client --query 'RENAME TABLE datasets.visits_v1 TO test.visits'
+ 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='\''s3_cache'\'''
+ clickhouse-client --query 'INSERT INTO test.hits_s3 SELECT * FROM test.hits SETTINGS enable_filesystem_cache_on_write_operations=0'
+ clickhouse-client --query 'SHOW TABLES FROM test'
hits
hits_s3
visits
+ clickhouse-client --query 'SELECT count() FROM test.hits'
8873898
+ clickhouse-client --query 'SELECT count() FROM test.visits'
1676861
+ export -f run_tests
+ timeout 3240 bash -c run_tests
+ read -ra ADDITIONAL_OPTIONS
+ [[ -n '' ]]
+ [[ -n '' ]]
+ set +e
+ [[ -n '' ]]
+ clickhouse-test -j 2 --testname --shard --zookeeper --check-zookeeper-session --no-stateless --hung-check --print-time --hung-check --print-time ''
+ ts '%Y-%m-%d %H:%M:%S'
+ tee test_output/test_result.txt
2024-03-20 06:01:13 Using queries from '/usr/share/clickhouse-test/queries' directory
2024-03-20 06:01:13 Connecting to ClickHouse server... OK
2024-03-20 06:01:13 Won't run stateless tests because they were manually disabled.
2024-03-20 06:01:13 Found 128 parallel tests and 5 sequential tests
2024-03-20 06:01:14
2024-03-20 06:01:14 Running about 64 stateful tests (ForkPoolWorker-2).
2024-03-20 06:01:14
2024-03-20 06:01:14 00178_query_datetime64_index: [ OK ] 0.42 sec.
2024-03-20 06:01:16 00176_distinct_limit_by_limit_bug_43377: [ OK ] 1.69 sec.
2024-03-20 06:01:16 00176_bson_parallel_parsing: [ SKIPPED ] 0.00 sec. - disabled
2024-03-20 06:01:19
2024-03-20 06:01:19 Running about 64 stateful tests (ForkPoolWorker-3).
2024-03-20 06:01:19
2024-03-20 06:01:19 00177_memory_bound_merging: [ OK ] 5.45 sec.
2024-03-20 06:01:20 00175_partition_by_ignore: [ OK ] 0.59 sec.
2024-03-20 06:01:20 00175_obfuscator_schema_inference: [ OK ] 4.26 sec.
2024-03-20 06:01:22 00175_counting_resources_in_subqueries: [ OK ] 2.07 sec.
2024-03-20 06:01:32 00173_group_by_use_nulls: [ OK ] 9.96 sec.
2024-03-20 06:01:48 00174_distinct_in_order: [ OK ] 28.45 sec.
2024-03-20 06:01:49 00172_early_constant_folding: [ OK ] 0.42 sec.
2024-03-20 06:02:12 00171_grouping_aggregated_transform_bug: [ OK ] 22.98 sec.
2024-03-20 06:03:25 00172_hits_joins: [ OK ] 113.81 sec.
2024-03-20 06:03:42 00169_contingency: [ OK ] 90.02 sec.
2024-03-20 06:03:45 00167_parallel_parsing_with_names_and_types: [ OK ] 19.25 sec.
2024-03-20 06:03:45 00166_explain_estimate: [ OK ] 0.77 sec.
2024-03-20 06:05:16 00165_jit_aggregate_functions: [ OK ] 90.23 sec.
2024-03-20 06:05:31 00164_quantileBfloat16: [ OK ] 15.45 sec.
2024-03-20 06:05:33 00167_read_bytes_from_fs: [ OK ] 110.91 sec.
2024-03-20 06:05:49 00163_column_oriented_formats: [ OK ] 17.33 sec.
2024-03-20 06:05:53 00162_mmap_compression_none: [ OK ] 20.58 sec.
2024-03-20 06:05:58 00161_parallel_parsing_with_names: [ OK ] 9.56 sec.
2024-03-20 06:06:04 00160_decode_xml_component: [ OK ] 10.55 sec.
2024-03-20 06:06:50 00159_parallel_formatting_http: [ OK ] 51.61 sec.
2024-03-20 06:08:56 00159_parallel_formatting_json_and_friends: [ OK ] 171.91 sec.
2024-03-20 06:09:05 00159_parallel_formatting_tsv_and_friends: [ OK ] 134.93 sec.
2024-03-20 06:09:10 00156_max_execution_speed_sample_merge: [ OK ] 5.00 sec.
2024-03-20 06:09:15 00154_avro: [ OK ] 4.71 sec.
2024-03-20 06:09:20 00153_aggregate_arena_race: [ OK ] 5.62 sec.
2024-03-20 06:09:21 00151_order_by_read_in_order: [ OK ] 0.70 sec.
2024-03-20 06:09:23 00150_quantiles_timing_precision: [ OK ] 2.53 sec.
2024-03-20 06:09:37 00149_quantiles_timing_distributed: [ OK ] 13.22 sec.
2024-03-20 06:09:41 00148_monotonic_functions_and_index: [ OK ] 4.57 sec.
2024-03-20 06:10:04 00147_global_in_aggregate_function: [ OK ] 23.05 sec.
2024-03-20 06:10:18 00146_aggregate_function_uniq: [ OK ] 13.92 sec.
2024-03-20 06:10:22 00145_aggregate_functions_statistics: [ OK ] 3.25 sec.
2024-03-20 06:10:23 00144_functions_of_aggregation_states: [ OK ] 1.54 sec.
2024-03-20 06:10:25 00143_transform_non_const_default: [ OK ] 1.63 sec.
2024-03-20 06:10:25 00142_system_columns: [ OK ] 0.40 sec.
2024-03-20 06:10:26 00141_transform: [ OK ] 0.58 sec.
2024-03-20 06:10:48 00139_like: [ OK ] 22.39 sec.
2024-03-20 06:10:49 00097_constexpr_in_index: [ OK ] 0.40 sec.
2024-03-20 06:10:50 00159_parallel_formatting_csv_and_friends: [ OK ] 113.96 sec.
2024-03-20 06:10:52 00096_obfuscator_save_load: [ OK ] 3.15 sec.
2024-03-20 06:11:06 00095_hyperscan_profiler: [ OK ] 16.61 sec.
2024-03-20 06:11:07 00094_order_by_array_join_limit: [ OK ] 14.87 sec.
2024-03-20 06:11:11 00092_obfuscator: [ OK ] 3.87 sec.
2024-03-20 06:11:25 00093_prewhere_array_join: [ OK ] 18.49 sec.
2024-03-20 06:11:45 00090_thread_pool_deadlock: [ OK ] 20.20 sec.
2024-03-20 06:11:57 00091_prewhere_two_conditions: [ OK ] 46.01 sec.
2024-03-20 06:12:01 00088_global_in_one_shard_and_rows_before_limit: [ OK ] 4.64 sec.
2024-03-20 06:12:02 00087_where_0: [ OK ] 0.57 sec.
2024-03-20 06:12:09 00086_array_reduce: [ OK ] 6.98 sec.
2024-03-20 06:12:10 00085_monotonic_evaluation_segfault: [ OK ] 0.89 sec.
2024-03-20 06:13:35 00089_position_functions_with_non_constant_arg: [ OK ] 109.34 sec.
2024-03-20 06:13:37 00083_array_filter: [ OK ] 2.19 sec.
2024-03-20 06:13:54 00082_quantiles: [ OK ] 16.64 sec.
2024-03-20 06:13:55 00081_group_by_without_key_and_totals: [ OK ] 1.13 sec.
2024-03-20 06:13:55 00080_array_join_and_union: [ OK ] 0.49 sec.
2024-03-20 06:13:58 00079_array_join_not_used_joined_column: [ OK ] 2.58 sec.
2024-03-20 06:14:10 00078_group_by_arrays: [ OK ] 12.26 sec.
2024-03-20 06:14:44 00077_log_tinylog_stripelog: [ OK ] 33.73 sec.
2024-03-20 06:14:44 00076_system_columns_bytes: [ OK ] 0.51 sec.
2024-03-20 06:14:46 00075_left_array_join: [ OK ] 1.63 sec.
2024-03-20 06:14:51 00074_full_join: [ OK ] 5.46 sec.
2024-03-20 06:14:52 00073_uniq_array: [ OK ] 0.71 sec.
2024-03-20 06:15:00 00072_compare_date_and_string_index: [ OK ] 8.23 sec.
2024-03-20 06:15:04 00084_external_aggregation: [ OK ] 173.68 sec.
2024-03-20 06:15:04 00069_duplicate_aggregation_keys: [ OK ] 0.52 sec.
2024-03-20 06:15:05 00068_subquery_in_prewhere: [ OK ] 0.81 sec.
2024-03-20 06:15:07 00067_union_all: [ OK ] 2.14 sec.
2024-03-20 06:15:08 00066_sorting_distributed_many_replicas: [ OK ] 0.75 sec.
2024-03-20 06:15:12 00065_loyalty_with_storage_join: [ OK ] 3.89 sec.
2024-03-20 06:15:20 00063_loyalty_joins: [ OK ] 8.24 sec.
2024-03-20 06:15:22 00062_loyalty: [ OK ] 1.44 sec.
2024-03-20 06:15:28 00061_storage_buffer: [ OK ] 6.69 sec.
2024-03-20 06:15:30 00060_move_to_prewhere_and_sets: [ OK ] 1.54 sec.
2024-03-20 06:15:30 00059_merge_sorting_empty_array_joined: [ OK ] 0.43 sec.
2024-03-20 06:15:33 00056_view: [ OK ] 2.65 sec.
2024-03-20 06:15:34 00055_index_and_not: [ OK ] 0.69 sec.
2024-03-20 06:15:35 00054_merge_tree_partitions: [ OK ] 1.51 sec.
2024-03-20 06:15:36 00071_merge_tree_optimize_aio: [ OK ] 35.53 sec.
2024-03-20 06:15:37 00052_group_by_in: [ OK ] 0.53 sec.
2024-03-20 06:15:44 00051_min_max_array: [ OK ] 7.71 sec.
2024-03-20 06:15:48 00050_min_max: [ OK ] 3.46 sec.
2024-03-20 06:15:51 00049_max_string_if: [ OK ] 3.03 sec.
2024-03-20 06:15:51 00048_min_max: [ OK ] 0.39 sec.
2024-03-20 06:15:53 00047_bar: [ OK ] 1.54 sec.
2024-03-20 06:15:54 00046_uniq_upto_distributed: [ OK ] 1.47 sec.
2024-03-20 06:15:55 00045_uniq_upto: [ OK ] 0.78 sec.
2024-03-20 06:16:03 00053_replicate_segfault: [ OK ] 27.79 sec.
2024-03-20 06:16:04 00044_any_left_join_string: [ OK ] 8.74 sec.
2024-03-20 06:16:06 00043_any_left_join: [ OK ] 2.51 sec.
2024-03-20 06:16:06 00042_any_left_join: [ OK ] 1.72 sec.
2024-03-20 06:16:10 00040_aggregating_materialized_view: [ OK ] 4.67 sec.
2024-03-20 06:16:11 00041_aggregating_materialized_view: [ OK ] 4.99 sec.
2024-03-20 06:16:11 00039_primary_key: [ OK ] 0.45 sec.
2024-03-20 06:16:19 00038_uniq_state_merge2: [ OK ] 8.35 sec.
2024-03-20 06:16:22 00036_aggregate_hashed: [ OK ] 2.73 sec.
2024-03-20 06:16:23 00035_aggregate_keys128: [ OK ] 1.07 sec.
2024-03-20 06:16:25 00034_aggregate_key_fixed_string: [ OK ] 2.51 sec.
2024-03-20 06:16:28 00033_aggregate_key_string: [ OK ] 2.35 sec.
2024-03-20 06:16:29 00032_aggregate_key64: [ OK ] 1.07 sec.
2024-03-20 06:16:30 00031_array_enumerate_uniq: [ OK ] 0.81 sec.
2024-03-20 06:16:33 00030_array_enumerate_uniq: [ OK ] 3.70 sec.
2024-03-20 06:16:36 00037_uniq_state_merge1: [ OK ] 24.91 sec.
2024-03-20 06:16:36 00023_totals_limit: [ OK ] 0.44 sec.
2024-03-20 06:16:37 00022_merge_prewhere: [ OK ] 0.71 sec.
2024-03-20 06:16:37 00021_3_select_with_in: [ OK ] 0.43 sec.
2024-03-20 06:16:38 00021_2_select_with_in: [ OK ] 0.45 sec.
2024-03-20 06:16:38 00021_1_select_with_in: [ OK ] 0.42 sec.
2024-03-20 06:16:39 00020_distinct_order_by_distributed: [ OK ] 0.61 sec.
2024-03-20 06:16:39 00017_aggregation_uninitialized_memory: [ OK ] 0.39 sec.
2024-03-20 06:16:41 00016_any_if_distributed_cond_always_false: [ OK ] 1.99 sec.
2024-03-20 06:16:42 00015_totals_and_no_aggregate_functions: [ OK ] 0.45 sec.
2024-03-20 06:16:43 00014_filtering_arrays: [ OK ] 1.31 sec.
2024-03-20 06:16:45 00013_sorting_of_nested: [ OK ] 1.70 sec.
2024-03-20 06:16:46 00012_sorting_distributed: [ OK ] 1.14 sec.
2024-03-20 06:16:47 00011_sorting: [ OK ] 0.89 sec.
2024-03-20 06:16:48 00010_quantiles_segfault: [ OK ] 1.47 sec.
2024-03-20 06:16:51 00009_uniq_distributed: [ OK ] 2.37 sec.
2024-03-20 06:16:52 00008_uniq: [ OK ] 1.34 sec.
2024-03-20 06:16:52 00007_uniq: [ OK ] 0.42 sec.
2024-03-20 06:16:53 00006_agregates: [ OK ] 0.67 sec.
2024-03-20 06:16:54 00005_filtering: [ OK ] 0.44 sec.
2024-03-20 06:16:55 00004_top_counters: [ OK ] 1.02 sec.
2024-03-20 06:16:55 00002_count_visits: [ OK ] 0.38 sec.
2024-03-20 06:16:55 00001_count_hits: [ OK ] 0.36 sec.
2024-03-20 06:16:55
2024-03-20 06:16:55 64 tests passed. 1 tests skipped. 942.00 s elapsed (ForkPoolWorker-2).
2024-03-20 06:17:31 00024_random_counters: [ OK ] 57.56 sec.
2024-03-20 06:17:31
2024-03-20 06:17:31 63 tests passed. 0 tests skipped. 977.41 s elapsed (ForkPoolWorker-3).
2024-03-20 06:17:31
2024-03-20 06:17:31 Running 5 stateful tests (MainProcess).
2024-03-20 06:17:31
2024-03-20 06:19:38 00170_s3_cache: [ OK ] 127.29 sec.
2024-03-20 06:20:04 00158_cache_dictionary_has: [ OK ] 25.99 sec.
2024-03-20 06:20:04 00157_cache_dictionary: [ SKIPPED ] 0.00 sec. - not running for current build
2024-03-20 06:20:04 00152_insert_different_granularity: [ SKIPPED ] 0.00 sec. - not running for current build
2024-03-20 06:20:05 00140_rename: [ OK ] 0.93 sec.
2024-03-20 06:20:05
2024-03-20 06:20:05 3 tests passed. 2 tests skipped. 154.26 s elapsed (MainProcess).
2024-03-20 06:20:05
2024-03-20 06:20:05 No queries hung.
2024-03-20 06:20:05 All tests have finished.
+ set -e
+ echo 'Files in current directory'
+ ls -la ./
Files in current directory
total 137372
drwxr-xr-x 1 root root 4096 Mar 20 05:55 .
drwxr-xr-x 1 root root 4096 Mar 20 05:55 ..
-rwxr-xr-x 1 root root 0 Mar 20 05:54 .dockerenv
-rw-r--r-- 1 root root 4237 Mar 20 05:55 __azurite_db_blob__.json
-rw-r--r-- 1 root root 1535 Mar 20 05:55 __azurite_db_blob_extent__.json
drwxr-xr-x 2 root root 4096 Mar 20 05:54 __blobstorage__
-rw-r--r-- 1 root root 77589 Mar 20 06:19 azurite_log
lrwxrwxrwx 1 root root 7 Feb 16 21:22 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 16 2020 boot
drwxr-xr-x 5 root root 340 Mar 20 05:54 dev
drwxr-xr-x 1 root root 4096 Mar 20 05:54 etc
drwxr-xr-x 10 1000 1000 4096 Jun 15 2021 hadoop-3.3.1
drwxr-xr-x 2 root root 4096 Apr 16 2020 home
lrwxrwxrwx 1 root root 7 Feb 16 21:22 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Feb 16 21:22 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 9 Feb 16 21:22 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 10 Feb 16 21:22 libx32 -> usr/libx32
-rwxr-xr-x 1 root root 21843968 Jan 6 2022 mc
drwxr-xr-x 2 root root 4096 Feb 16 21:23 media
-rwxr-xr-x 1 root root 118595584 Jan 4 2022 minio
drwxr-xr-x 4 root root 4096 Mar 20 05:54 minio_data
drwxr-xr-x 2 root root 4096 Feb 16 21:23 mnt
drwxr-xr-x 1 root root 4096 Mar 8 06:13 node_modules
drwxr-xr-x 2 root root 4096 Feb 16 21:23 opt
-rw-r--r-- 1 root root 308 Mar 8 06:11 package-lock.json
drwxrwxr-x 2 1000 1000 4096 Mar 20 05:54 package_folder
dr-xr-xr-x 307 root root 0 Mar 20 05:54 proc
-rwxrwxr-x 1 root root 6652 Mar 8 04:49 process_functional_tests_result.py
drwx------ 1 root root 4096 Mar 20 05:54 root
drwxr-xr-x 1 root root 4096 Mar 20 05:54 run
-rwxrwxr-x 1 root root 11434 Mar 8 04:49 run.sh
-rwxrwxr-x 1 root root 4302 Mar 8 04:49 s3downloader
lrwxrwxrwx 1 root root 8 Feb 16 21:22 sbin -> usr/sbin
-rwxrwxr-x 1 root root 351 Mar 8 04:49 setup_hdfs_minicluster.sh
-rwxrwxr-x 1 root root 3465 Mar 8 04:49 setup_minio.sh
drwxr-xr-x 2 root root 4096 Feb 16 21:23 srv
dr-xr-xr-x 13 root root 0 Mar 20 05:54 sys
drwxrwxr-x 2 1000 1000 4096 Mar 20 06:01 test_output
drwxrwxrwt 1 root root 4096 Mar 20 06:20 tmp
drwxr-xr-x 1 root root 4096 Mar 8 04:50 usr
drwxr-xr-x 1 root root 4096 Feb 16 21:26 var
+ echo 'Files in root directory'
+ ls -la /
Files in root directory
total 137372
drwxr-xr-x 1 root root 4096 Mar 20 05:55 .
drwxr-xr-x 1 root root 4096 Mar 20 05:55 ..
-rwxr-xr-x 1 root root 0 Mar 20 05:54 .dockerenv
-rw-r--r-- 1 root root 4237 Mar 20 05:55 __azurite_db_blob__.json
-rw-r--r-- 1 root root 1535 Mar 20 05:55 __azurite_db_blob_extent__.json
drwxr-xr-x 2 root root 4096 Mar 20 05:54 __blobstorage__
-rw-r--r-- 1 root root 77589 Mar 20 06:19 azurite_log
lrwxrwxrwx 1 root root 7 Feb 16 21:22 bin -> usr/bin
drwxr-xr-x 2 root root 4096 Apr 16 2020 boot
drwxr-xr-x 5 root root 340 Mar 20 05:54 dev
drwxr-xr-x 1 root root 4096 Mar 20 05:54 etc
drwxr-xr-x 10 1000 1000 4096 Jun 15 2021 hadoop-3.3.1
drwxr-xr-x 2 root root 4096 Apr 16 2020 home
lrwxrwxrwx 1 root root 7 Feb 16 21:22 lib -> usr/lib
lrwxrwxrwx 1 root root 9 Feb 16 21:22 lib32 -> usr/lib32
lrwxrwxrwx 1 root root 9 Feb 16 21:22 lib64 -> usr/lib64
lrwxrwxrwx 1 root root 10 Feb 16 21:22 libx32 -> usr/libx32
-rwxr-xr-x 1 root root 21843968 Jan 6 2022 mc
drwxr-xr-x 2 root root 4096 Feb 16 21:23 media
-rwxr-xr-x 1 root root 118595584 Jan 4 2022 minio
drwxr-xr-x 4 root root 4096 Mar 20 05:54 minio_data
drwxr-xr-x 2 root root 4096 Feb 16 21:23 mnt
drwxr-xr-x 1 root root 4096 Mar 8 06:13 node_modules
drwxr-xr-x 2 root root 4096 Feb 16 21:23 opt
-rw-r--r-- 1 root root 308 Mar 8 06:11 package-lock.json
drwxrwxr-x 2 1000 1000 4096 Mar 20 05:54 package_folder
dr-xr-xr-x 307 root root 0 Mar 20 05:54 proc
-rwxrwxr-x 1 root root 6652 Mar 8 04:49 process_functional_tests_result.py
drwx------ 1 root root 4096 Mar 20 05:54 root
drwxr-xr-x 1 root root 4096 Mar 20 05:54 run
-rwxrwxr-x 1 root root 11434 Mar 8 04:49 run.sh
-rwxrwxr-x 1 root root 4302 Mar 8 04:49 s3downloader
lrwxrwxrwx 1 root root 8 Feb 16 21:22 sbin -> usr/sbin
-rwxrwxr-x 1 root root 351 Mar 8 04:49 setup_hdfs_minicluster.sh
-rwxrwxr-x 1 root root 3465 Mar 8 04:49 setup_minio.sh
drwxr-xr-x 2 root root 4096 Feb 16 21:23 srv
dr-xr-xr-x 13 root root 0 Mar 20 05:54 sys
drwxrwxr-x 2 1000 1000 4096 Mar 20 06:01 test_output
drwxrwxrwt 1 root root 4096 Mar 20 06:20 tmp
drwxr-xr-x 1 root root 4096 Mar 8 04:50 usr
drwxr-xr-x 1 root root 4096 Feb 16 21:26 var
+ /process_functional_tests_result.py
2024-03-20 06:20:05,972 Find files in result folder run.log,test_result.txt
2024-03-20 06:20:05,973 Is flaky check: False
2024-03-20 06:20:05,973 Result parsed
2024-03-20 06:20:05,974 Result written
+ sudo clickhouse stop
==4202==Installed the sigaction for signal 11
==4202==Installed the sigaction for signal 7
==4202==Installed the sigaction for signal 8
==4202==Using llvm-symbolizer found at: /usr/bin/llvm-symbolizer-15
***** Running under ThreadSanitizer v3 (pid 4202) *****
ThreadSanitizer: growing sync allocator: 0 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 0 out of 262144*4096
ThreadSanitizer: growing sync allocator: 1 out of 1048576*1024
ThreadSanitizer: growing sync allocator: 2 out of 1048576*1024
ThreadSanitizer: growing heap block allocator: 1 out of 262144*4096
ThreadSanitizer: growing sync allocator: 3 out of 1048576*1024
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Sent terminate signal to process with pid 748.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 is running.
Waiting for server to stop
/var/run/clickhouse-server/clickhouse-server.pid file exists and contains pid = 748.
The process with pid = 748 does not exist.
Server stopped
Stats: SizeClassAllocator64: 4M mapped (0M rss) in 9874 allocations; remains 5329
01 ( 16): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 3968 avail: 4096 rss: 4K releases: 0 last released: 0K region: 0x7b0400000000
02 ( 32): mapped: 64K allocs: 2560 frees: 2176 inuse: 384 num_freed_chunks 1664 avail: 2048 rss: 48K releases: 2 last released: 16K region: 0x7b0800000000
03 ( 48): mapped: 192K allocs: 3072 frees: 2048 inuse: 1024 num_freed_chunks 3072 avail: 4096 rss: 132K releases: 1 last released: 56K region: 0x7b0c00000000
04 ( 64): mapped: 64K allocs: 768 frees: 128 inuse: 640 num_freed_chunks 384 avail: 1024 rss: 44K releases: 1 last released: 16K region: 0x7b1000000000
05 ( 80): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 563 avail: 819 rss: 16K releases: 0 last released: 0K region: 0x7b1400000000
06 ( 96): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 426 avail: 682 rss: 20K releases: 0 last released: 0K region: 0x7b1800000000
07 ( 112): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 457 avail: 585 rss: 12K releases: 0 last released: 0K region: 0x7b1c00000000
08 ( 128): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 384 avail: 512 rss: 16K releases: 0 last released: 0K region: 0x7b2000000000
09 ( 144): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 327 avail: 455 rss: 8K releases: 0 last released: 0K region: 0x7b2400000000
10 ( 160): mapped: 64K allocs: 384 frees: 128 inuse: 256 num_freed_chunks 153 avail: 409 rss: 52K releases: 1 last released: 8K region: 0x7b2800000000
11 ( 176): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 244 avail: 372 rss: 4K releases: 0 last released: 0K region: 0x7b2c00000000
12 ( 192): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 213 avail: 341 rss: 8K releases: 0 last released: 0K region: 0x7b3000000000
13 ( 208): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 187 avail: 315 rss: 4K releases: 0 last released: 0K region: 0x7b3400000000
14 ( 224): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 164 avail: 292 rss: 4K releases: 0 last released: 0K region: 0x7b3800000000
15 ( 240): mapped: 64K allocs: 256 frees: 0 inuse: 256 num_freed_chunks 17 avail: 273 rss: 32K releases: 0 last released: 0K region: 0x7b3c00000000
16 ( 256): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 128 avail: 256 rss: 4K releases: 0 last released: 0K region: 0x7b4000000000
17 ( 320): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 76 avail: 204 rss: 12K releases: 0 last released: 0K region: 0x7b4400000000
18 ( 384): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 42 avail: 170 rss: 8K releases: 0 last released: 0K region: 0x7b4800000000
19 ( 448): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 18 avail: 146 rss: 4K releases: 0 last released: 0K region: 0x7b4c00000000
20 ( 512): mapped: 64K allocs: 128 frees: 0 inuse: 128 num_freed_chunks 0 avail: 128 rss: 8K releases: 0 last released: 0K region: 0x7b5000000000
21 ( 640): mapped: 64K allocs: 102 frees: 0 inuse: 102 num_freed_chunks 0 avail: 102 rss: 8K releases: 0 last released: 0K region: 0x7b5400000000
22 ( 768): mapped: 64K allocs: 85 frees: 0 inuse: 85 num_freed_chunks 0 avail: 85 rss: 4K releases: 0 last released: 0K region: 0x7b5800000000
23 ( 896): mapped: 64K allocs: 73 frees: 0 inuse: 73 num_freed_chunks 0 avail: 73 rss: 8K releases: 0 last released: 0K region: 0x7b5c00000000
24 ( 1024): mapped: 64K allocs: 64 frees: 0 inuse: 64 num_freed_chunks 0 avail: 64 rss: 16K releases: 0 last released: 0K region: 0x7b6000000000
25 ( 1280): mapped: 192K allocs: 153 frees: 51 inuse: 102 num_freed_chunks 51 avail: 153 rss: 84K releases: 1 last released: 60K region: 0x7b6400000000
26 ( 1536): mapped: 64K allocs: 42 frees: 0 inuse: 42 num_freed_chunks 0 avail: 42 rss: 4K releases: 0 last released: 0K region: 0x7b6800000000
27 ( 1792): mapped: 64K allocs: 36 frees: 0 inuse: 36 num_freed_chunks 0 avail: 36 rss: 4K releases: 0 last released: 0K region: 0x7b6c00000000
29 ( 2560): mapped: 64K allocs: 25 frees: 0 inuse: 25 num_freed_chunks 0 avail: 25 rss: 4K releases: 0 last released: 0K region: 0x7b7400000000
31 ( 3584): mapped: 64K allocs: 18 frees: 0 inuse: 18 num_freed_chunks 0 avail: 18 rss: 4K releases: 0 last released: 0K region: 0x7b7c00000000
32 ( 4096): mapped: 64K allocs: 16 frees: 0 inuse: 16 num_freed_chunks 0 avail: 16 rss: 20K releases: 0 last released: 0K region: 0x7b8000000000
34 ( 6144): mapped: 64K allocs: 10 frees: 0 inuse: 10 num_freed_chunks 0 avail: 10 rss: 12K releases: 0 last released: 0K region: 0x7b8800000000
35 ( 7168): mapped: 64K allocs: 9 frees: 0 inuse: 9 num_freed_chunks 0 avail: 9 rss: 24K releases: 0 last released: 0K region: 0x7b8c00000000
39 ( 14336): mapped: 64K allocs: 4 frees: 0 inuse: 4 num_freed_chunks 0 avail: 4 rss: 16K releases: 0 last released: 0K region: 0x7b9c00000000
42 ( 24576): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 24K releases: 0 last released: 0K region: 0x7ba800000000
43 ( 28672): mapped: 64K allocs: 2 frees: 0 inuse: 2 num_freed_chunks 0 avail: 2 rss: 28K releases: 0 last released: 0K region: 0x7bac00000000
50 ( 98304): mapped: 128K allocs: 1 frees: 0 inuse: 1 num_freed_chunks 0 avail: 1 rss: 88K releases: 0 last released: 0K region: 0x7bc800000000
52 (131072): mapped: 2048K allocs: 16 frees: 14 inuse: 2 num_freed_chunks 14 avail: 16 rss: 0K releases: 1 last released: 128K region: 0x7bd000000000
Stats: LargeMmapAllocator: allocated 10 times, remains 0 (0 K) max 1 M; by size logs: 20:10;
+ [[ -n '' ]]
+ rg -Fa '' /var/log/clickhouse-server/clickhouse-server.log
2024.03.20 05:54:55.460914 [ 350 ] {} KeeperServer: Can't start NON-SECURE keeper server in FIPS mode, please check the config.
2024.03.20 05:55:24.829411 [ 748 ] {} KeeperServer: Can't start NON-SECURE keeper server in FIPS mode, please check the config.
+ zstd --threads=0
+ rm /var/log/clickhouse-server/clickhouse-server.log
+ mv /var/log/clickhouse-server/stderr.log /test_output/
+ [[ -n '' ]]
+ [[ -n '' ]]